Re: [ANNOUNCE] v4.4.231-rt202

2020-07-27 Thread Steven Rostedt
On Sun, 26 Jul 2020 13:55:12 +0200 Daniel Wagner wrote: > Hi, > > On 24.07.20 15:41, Daniel Wagner wrote: > > Known issues: > > > > sigwaittest with hackbench as workload is able to trigger a crash on > > x86_64, > > the same as reported for the v4.4.220-rt196 release. As it turns > >

Re: [PATCH v2 6/6] stm class: ftrace: use different channel accroding to CPU

2020-07-27 Thread Steven Rostedt
On Sun, 26 Jul 2020 10:59:31 +0800 Tingwei Zhang wrote: > --- a/drivers/hwtracing/stm/ftrace.c > +++ b/drivers/hwtracing/stm/ftrace.c > @@ -37,8 +37,9 @@ static void notrace > stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int > len) > { > struct stm_ftrace *stm

[PATCH][next] staging: rtl8192e: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[PATCH][next] staging: gdm724x: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[Linux-kernel-mentees] [PATCH v2] block/scsi-ioctl: Prevent kernel-infoleak in scsi_put_cdrom_generic_arg()

2020-07-27 Thread Peilin Ye
scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to userspace due to the compiler not initializing holes in statically allocated structures. Fix it by adding a padding field to `struct compat_cdrom_generic_command`. Cc: sta...@vger.kernel.org Fixes: f3ee6e63a9df ("compat_ioctl:

[PATCH][next] staging: rtl8723bs: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[PATCH][next] staging: ks7010: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[tip:sched/core] BUILD SUCCESS 13efa616124f7eec7d6a58adeeef31864aa03879

2020-07-27 Thread kernel test robot
powerpc defconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a003-20200727 i386 randconfig-a005-20200727 i386

Re: [PATCH 0/5] cpuidle-pseries: Parse extended CEDE information for idle.

2020-07-27 Thread Gautham R Shenoy
Hello Rafael, On Mon, Jul 27, 2020 at 04:14:12PM +0200, Rafael J. Wysocki wrote: > On Tue, Jul 7, 2020 at 1:32 PM Gautham R Shenoy > wrote: > > > > Hi, > > > > On Tue, Jul 07, 2020 at 04:41:34PM +0530, Gautham R. Shenoy wrote: > > > From: "Gautham R. Shenoy" > > > > > > Hi, > > > > > > > > > >

Re: [PATCH v4 09/10] Powerpc/smp: Create coregroup domain

2020-07-27 Thread Gautham R Shenoy
Hi Srikar, On Mon, Jul 27, 2020 at 11:02:29AM +0530, Srikar Dronamraju wrote: > Add percpu coregroup maps and masks to create coregroup domain. > If a coregroup doesn't exist, the coregroup domain will be degenerated > in favour of SMT/CACHE domain. > > Cc: linuxppc-dev > Cc: LKML > Cc:

Re: [PATCH net] mptcp: fix joined subflows with unblocking sk

2020-07-27 Thread David Miller
From: Matthieu Baerts Date: Mon, 27 Jul 2020 12:24:33 +0200 > Unblocking sockets used for outgoing connections were not containing > inet info about the initial connection due to a typo there: the value of > "err" variable is negative in the kernelspace. > > This fixes the creation of

[PATCH][next] staging: rtl8712: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[PATCH bpf-next v2 07/35] bpf: refine memcg-based memory accounting for hashtab maps

2020-07-27 Thread Roman Gushchin
Include percpu objects and the size of map metadata into the accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/hashtab.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index 024276787055..9d0432170812 100644

[PATCH bpf-next v2 10/35] bpf: memcg-based memory accounting for socket storage maps

2020-07-27 Thread Roman Gushchin
Account memory used by the socket storage. Signed-off-by: Roman Gushchin --- net/core/bpf_sk_storage.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/net/core/bpf_sk_storage.c b/net/core/bpf_sk_storage.c index eafcd15e7dfd..fbcd03cd00d3 100644 ---

[PATCH bpf-next v2 04/35] bpf: refine memcg-based memory accounting for cpumap maps

2020-07-27 Thread Roman Gushchin
Include metadata and percpu data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/cpumap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpumap.c index f1c46529929b..74ae9fcbe82e 100644 ---

[PATCH bpf-next v2 11/35] bpf: refine memcg-based memory accounting for sockmap and sockhash maps

2020-07-27 Thread Roman Gushchin
Include internal metadata into the memcg-based memory accounting. Also include the memory allocated on updating an element. Signed-off-by: Roman Gushchin --- net/core/sock_map.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/core/sock_map.c b/net/core/sock_map.c

[PATCH bpf-next v2 15/35] bpf: eliminate rlimit-based memory accounting for cpumap maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cpumap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/cpumap.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/kernel/bpf/cpumap.c

[PATCH bpf-next v2 34/35] bpf: samples: do not touch RLIMIT_MEMLOCK

2020-07-27 Thread Roman Gushchin
Since bpf is not using rlimit memlock for the memory accounting and control, do not change the limit in sample applications. Signed-off-by: Roman Gushchin --- samples/bpf/map_perf_test_user.c| 11 --- samples/bpf/offwaketime_user.c | 2 -- samples/bpf/sockex2_user.c |

[PATCH bpf-next v2 12/35] bpf: refine memcg-based memory accounting for xskmap maps

2020-07-27 Thread Roman Gushchin
Extend xskmap memory accounting to include the memory taken by the xsk_map_node structure. Signed-off-by: Roman Gushchin --- net/xdp/xskmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index 8367adbbe9df..e574b22defe5 100644 ---

[PATCH bpf-next v2 17/35] bpf: eliminate rlimit-based memory accounting for devmap maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for devmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/devmap.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/kernel/bpf/devmap.c

[PATCH bpf-next v2 31/35] bpf: runqslower: don't touch RLIMIT_MEMLOCK

2020-07-27 Thread Roman Gushchin
Since bpf is not using memlock rlimit for memory accounting, there are no more reasons to bump the limit. Signed-off-by: Roman Gushchin --- tools/bpf/runqslower/runqslower.c | 16 1 file changed, 16 deletions(-) diff --git a/tools/bpf/runqslower/runqslower.c

[PATCH bpf-next v2 19/35] bpf: eliminate rlimit-based memory accounting for lpm_trie maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for lpm_trie maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/lpm_trie.c | 13 - 1 file changed, 13 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index

[PATCH bpf-next v2 00/35] bpf: switch to memcg-based memory accounting

2020-07-27 Thread Roman Gushchin
Currently bpf is using the memlock rlimit for the memory accounting. This approach has its downsides and over time has created a significant amount of problems: 1) The limit is per-user, but because most bpf operations are performed as root, the limit has a little value. 2) It's hard to come

[PATCH bpf-next v2 35/35] perf: don't touch RLIMIT_MEMLOCK

2020-07-27 Thread Roman Gushchin
Since bpf stopped using memlock rlimit to limit the memory usage, there is no more reason for perf to alter its own limit. Signed-off-by: Roman Gushchin --- tools/perf/builtin-trace.c | 10 -- tools/perf/tests/builtin-test.c | 6 -- tools/perf/util/Build | 1 -

[PATCH bpf-next v2 30/35] bpf: bpftool: do not touch RLIMIT_MEMLOCK

2020-07-27 Thread Roman Gushchin
Since bpf stopped using memlock rlimit to limit the memory usage, there is no more reason for bpftool to alter its own limits. Signed-off-by: Roman Gushchin --- tools/bpf/bpftool/common.c | 7 --- tools/bpf/bpftool/feature.c| 2 -- tools/bpf/bpftool/main.h | 2 --

[PATCH bpf-next v2 27/35] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-07-27 Thread Roman Gushchin
Remove rlimit-based accounting infrastructure code, which is not used anymore. Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 12 kernel/bpf/syscall.c | 64 +-- .../selftests/bpf/progs/map_ptr_kern.c| 5 --

[PATCH bpf-next v2 16/35] bpf: eliminate rlimit-based memory accounting for cgroup storage maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cgroup storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/local_storage.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git

[PATCH bpf-next v2 32/35] bpf: selftests: delete bpf_rlimit.h

2020-07-27 Thread Roman Gushchin
As rlimit-based memory accounting is not used by bpf anymore, there are no more reasons to play with memlock rlimit. Delete bpf_rlimit.h which contained a code to bump the limit. Signed-off-by: Roman Gushchin --- samples/bpf/hbm.c | 1 -

Re: [PATCH v2 2/6] tracing: add flag to control different traces

2020-07-27 Thread Steven Rostedt
On Sun, 26 Jul 2020 10:59:27 +0800 Tingwei Zhang wrote: > diff --git a/include/linux/trace.h b/include/linux/trace.h > index 7fd86d3c691f..d2fdf9be84b5 100644 > --- a/include/linux/trace.h > +++ b/include/linux/trace.h > @@ -3,6 +3,9 @@ > #define _LINUX_TRACE_H > > #ifdef CONFIG_TRACING > +

[PATCH bpf-next v2 26/35] bpf: eliminate rlimit-based memory accounting for xskmap maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for xskmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/xdp/xskmap.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index

[PATCH bpf-next v2 20/35] bpf: eliminate rlimit-based memory accounting for queue_stack_maps maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for queue_stack maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/queue_stack_maps.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git

[PATCH bpf-next v2 05/35] bpf: memcg-based memory accounting for cgroup storage maps

2020-07-27 Thread Roman Gushchin
Account memory used by cgroup storage maps including the percpu memory for the percpu flavor of cgroup storage and map metadata. Signed-off-by: Roman Gushchin --- kernel/bpf/local_storage.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git

[PATCH bpf-next v2 08/35] bpf: memcg-based memory accounting for lpm_trie maps

2020-07-27 Thread Roman Gushchin
Include lpm trie and lpm trie node objects into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/lpm_trie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index 44474bf3ab7a..d85e0fc2cafc

[PATCH bpf-next v2 29/35] bpf: libbpf: cleanup RLIMIT_MEMLOCK usage

2020-07-27 Thread Roman Gushchin
As bpf is not using memlock rlimit for memory accounting anymore, let's remove the related code from libbpf. Bpf operations can't fail because of exceeding the limit anymore. Signed-off-by: Roman Gushchin --- tools/lib/bpf/libbpf.c | 31 +-- tools/lib/bpf/libbpf.h |

[PATCH bpf-next v2 25/35] bpf: eliminate rlimit-based memory accounting for socket storage maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for socket storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/core/bpf_sk_storage.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/net/core/bpf_sk_storage.c

[PATCH bpf-next v2 02/35] bpf: memcg-based memory accounting for bpf maps

2020-07-27 Thread Roman Gushchin
This patch enables memcg-based memory accounting for memory allocated by __bpf_map_area_alloc(), which is used by most map types for large allocations. Following patches in the series will refine the accounting for some map types. Signed-off-by: Roman Gushchin --- kernel/bpf/syscall.c | 2 +-

[PATCH bpf-next v2 21/35] bpf: eliminate rlimit-based memory accounting for reuseport_array maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for reuseport_array maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/reuseport_array.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git

[PATCH bpf-next v2 24/35] bpf: eliminate rlimit-based memory accounting for stackmap maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for stackmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/stackmap.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/kernel/bpf/stackmap.c

[PATCH bpf-next v2 33/35] bpf: selftests: don't touch RLIMIT_MEMLOCK

2020-07-27 Thread Roman Gushchin
Since bpf is not using memlock rlimit for memory accounting, there are no more reasons to bump the limit. Signed-off-by: Roman Gushchin --- tools/testing/selftests/bpf/bench.c | 16 --- .../selftests/bpf/progs/bpf_iter_bpf_map.c| 5 ++---

[PATCH bpf-next v2 28/35] bpf: eliminate rlimit-based memory accounting for bpf progs

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf progs. It has been replaced with memcg-based memory accounting. Signed-off-by: Roman Gushchin --- include/linux/bpf.h | 11 -- kernel/bpf/core.c| 12 ++- kernel/bpf/syscall.c | 86 ++-- 3

[PATCH bpf-next v2 14/35] bpf: eliminate rlimit-based memory accounting for bpf_struct_ops maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf_struct_ops maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/bpf_struct_ops.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git

[PATCH bpf-next v2 23/35] bpf: eliminate rlimit-based memory accounting for sockmap and sockhash maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for sockmap and sockhash maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- net/core/sock_map.c | 33 ++--- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git

[PATCH bpf-next v2 22/35] bpf: eliminate rlimit-based memory accounting for bpf ringbuffer

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf ringbuffer. It has been replaced with the memcg-based memory accounting. bpf_ringbuf_alloc() can't return anything except ERR_PTR(-ENOMEM) and a valid pointer, so to simplify the code make it return NULL in the first case. This allows to drop a

[PATCH bpf-next v2 03/35] bpf: refine memcg-based memory accounting for arraymap maps

2020-07-27 Thread Roman Gushchin
Include percpu arrays and auxiliary data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/arraymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 8ff419b632a6..9597fecff8da

[PATCH bpf-next v2 01/35] bpf: memcg-based memory accounting for bpf progs

2020-07-27 Thread Roman Gushchin
Include memory used by bpf programs into the memcg-based accounting. This includes the memory used by programs itself, auxiliary data and statistics. Signed-off-by: Roman Gushchin --- kernel/bpf/core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/core.c

[PATCH bpf-next v2 06/35] bpf: refine memcg-based memory accounting for devmap maps

2020-07-27 Thread Roman Gushchin
Include map metadata and the node size (struct bpf_dtab_netdev) on element update into the accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/devmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index

[PATCH bpf-next v2 18/35] bpf: eliminate rlimit-based memory accounting for hashtab maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for hashtab maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/hashtab.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/kernel/bpf/hashtab.c

[PATCH bpf-next v2 13/35] bpf: eliminate rlimit-based memory accounting for arraymap maps

2020-07-27 Thread Roman Gushchin
Do not use rlimit-based memory accounting for arraymap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin --- kernel/bpf/arraymap.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/kernel/bpf/arraymap.c

[PATCH bpf-next v2 09/35] bpf: memcg-based memory accounting for bpf ringbuffer

2020-07-27 Thread Roman Gushchin
Enable the memcg-based memory accounting for the memory used by the bpf ringbuffer. Signed-off-by: Roman Gushchin --- kernel/bpf/ringbuf.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/ringbuf.c b/kernel/bpf/ringbuf.c index 002f8a5c9e51..e8e2c39cbdc9

Re: [PATCH][next] binfmt_elf: fix unsigned regset0_size compared to less than zero

2020-07-27 Thread Al Viro
On Mon, Jul 27, 2020 at 06:40:54PM +0100, Colin King wrote: > From: Colin Ian King > > Variable regset0_size is an unsigned int and it is being checked > for an error by checking if it is less than zero, and hence this > check is always going to be false. Fix this by making the variable >

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-07-27 Thread Vivek Goyal
On Mon, Jul 27, 2020 at 06:09:32PM +0200, Vitaly Kuznetsov wrote: > Vivek Goyal writes: > > > On Mon, Jul 20, 2020 at 05:13:59PM -0400, Vivek Goyal wrote: > >> Page fault error handling behavior in kvm seems little inconsistent when > >> page fault reports error. If we are doing fault

Re: [PATCH] LSM: drop duplicated words in header file comments

2020-07-27 Thread James Morris
On Fri, 17 Jul 2020, Randy Dunlap wrote: > From: Randy Dunlap > > Drop the doubled words "the" and "and" in comments. > > Signed-off-by: Randy Dunlap Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general -- James Morris

Kernel panic - not syncing: IO-APIC + timer doesn't work!

2020-07-27 Thread Scott Branden
Occasionally I get the following Kernel panic on boot.  This is running on the latest kernel but have seen it previously as well. "Kernel panic - not syncing: IO-APIC + timer doesn't work!  Boot with apic=debug and send a report." I don't know who I am support to send a report to.  But here is

Re: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check

2020-07-27 Thread David Miller
From: Gaurav Singh Date: Sun, 26 Jul 2020 23:38:10 -0400 > ipv6_pinfo is initlialized by inet6_sk() which returns NULL. > Hence it can cause segmentation fault. Fix this by adding a > NULL check. Please take your time with such changes and actually look at the compiler output, it will warn

[PATCH][next] staging: comedi: s526: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[PATCH] iommu: amd: Add missing function prototypes to fix -Wmissing-prototypes

2020-07-27 Thread Krzysztof Kozlowski
Few exported functions from AMD IOMMU driver are missing prototypes. They have declaration in arch/x86/events/amd/iommu.h but this file cannot be included in the driver. Add prototypes to fix W=1 warnings like: drivers/iommu/amd/init.c:3066:19: warning: no previous prototype for

[PATCH][next] staging: qlge: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

[PATCH][next] staging: vc04_services: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH v3 4/4] xen: add helpers to allocate unpopulated memory

2020-07-27 Thread kernel test robot
Hi Roger, Thank you for the patch! Yet something to improve: [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on linus/master v5.8-rc7 next-20200727] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[PATCH][next] greybus: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH] MAINTAINERS: Update GENI I2C maintainers list

2020-07-27 Thread Wolfram Sang
On Mon, Jul 27, 2020 at 01:56:00PM +0530, Akash Asthana wrote: > Alok Chauhan has moved out of GENI team, he no longer supports GENI I2C > driver, remove him from maintainer list. > > Add Akash Asthana & Mukesh Savaliya as maintainers for GENI I2C drivers. > > Signed-off-by: Akash Asthana

Re: [PATCH 19/26] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-27 Thread Ido Schimmel
On Mon, Jul 27, 2020 at 06:15:55PM +0200, Christoph Hellwig wrote: > I have to admit I didn't spot the difference between the good and the > bad output even after trying hard.. > > But can you try the patch below? > > --- > From cce2d2e1b43ecee5f4af7cf116808b74b330080f Mon Sep 17 00:00:00 2001 >

[PATCH net] fix a braino in cmsghdr_from_user_compat_to_kern()

2020-07-27 Thread Al Viro
commit 547ce4cfb34c ("switch cmsghdr_from_user_compat_to_kern() to copy_from_user()") missed one of the places where ucmlen should've been replaced with cmsg.cmsg_len, now that we are fetching the entire struct rather than doing it field-by-field. As the result, compat sendmsg()

Re: [PATCH v7 9/9] dt-bindings: hwmon: Add bindings for ADM1266

2020-07-27 Thread Rob Herring
On Mon, 27 Jul 2020 19:18:14 +0300, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add bindings for the Analog Devices ADM1266 sequencer. > > Signed-off-by: Alexandru Tachici > --- > .../bindings/hwmon/adi,adm1266.yaml | 56 +++ > 1 file changed,

Re: [PATCH v5 2/3] dt-bindings: arm: stm32: document Odyssey compatible

2020-07-27 Thread Rob Herring
On Fri, 24 Jul 2020 16:51:06 +0200, Marcin Sloniewski wrote: > Document device tree bindings of Seeed SoM and carrier board. > > Signed-off-by: Marcin Sloniewski > --- > Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++ > 1 file changed, 6 insertions(+) > Reviewed-by: Rob

Re: [PATCH v3 00/13] msm8992 DTS updates, peripheral enablement

2020-07-27 Thread Konrad Dybcio
Bumping this up, in case it just got overlooked. Konrad

[PATCH] iommu: mtk: Drop of_match_ptr to fix -Wunused-const-variable

2020-07-27 Thread Krzysztof Kozlowski
The of_device_id is included unconditionally by of.h header and used in the driver as well. Remove of_match_ptr to fix W=1 compile test warning with !CONFIG_OF: drivers/iommu/mtk_iommu.c:833:34: warning: 'mtk_iommu_of_ids' defined but not used [-Wunused-const-variable=] 833 | static

Re: [EXTERNAL] Re: [PATCH v17 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-07-27 Thread Ricardo Rivera-Matos
On 7/26/20 6:24 PM, Sebastian Reichel wrote: Hi, On Mon, Jul 20, 2020 at 03:43:58PM -0500, Ricardo Rivera-Matos wrote: From: Dan Murphy Convert the battery.txt file to yaml and fix up the examples. The examples were correct for the existing binding. What you did is completly changing the

[PATCH] edac,ghes,cper: Add Row Extension to Memory Error Record

2020-07-27 Thread Alex Kluver
Memory errors could be printed with incorrect row values since the DIMM size has outgrown the 16 bit row field in the CPER structure. UEFI Specification Version 2.8 has increased the size of row by allowing it to use the first 2 bits from a previously reserved space within the structure. When

Re: [PATCH 1/2] dt-bindings: iio: light: add AMS AS73211 support

2020-07-27 Thread Rob Herring
On Mon, 27 Jul 2020 16:47:40 +0200, Christian Eggers wrote: > Add DT bindings for AMS AS73211 XYZ True Color Sensor. > > Signed-off-by: Christian Eggers > --- > .../bindings/iio/light/ams,as73211.yaml | 54 +++ > 1 file changed, 54 insertions(+) > create mode 100644 >

Re: [PATCH v3 3/3] ltc2471 driver yaml

2020-07-27 Thread Rob Herring
On Mon, 27 Jul 2020 16:58:34 +0300, Darius Berghe wrote: > Add dt binding documentation for ltc2471 driver. This covers all supported > devices. > > Signed-off-by: Darius Berghe > --- > .../bindings/iio/adc/adi,ltc2471.yaml | 49 +++ > 1 file changed, 49 insertions(+) >

Re: [PATCH v8 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2020-07-27 Thread Rob Herring
On Sun, 26 Jul 2020 22:15:54 +0300, Talel Shenhar wrote: > Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. > > Signed-off-by: Talel Shenhar > Reviewed-by: Rob Herring > --- > .../bindings/edac/amazon,al-mc-edac.yaml | 52 +++ > 1 file changed, 52

Re: [PATCH 1/2] drm/radeon: switch from 'pci_' to 'dma_' API

2020-07-27 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jul 27, 2020 at 9:42 AM Christian König wrote: > > Am 27.07.20 um 12:34 schrieb Christophe JAILLET: > > The wrappers in include/linux/pci-dma-compat.h should go away. > > > > The patch has been generated with the coccinelle script below and has been > > hand

Re: [PATCH 9/9] soc/qcom: Add REVID driver

2020-07-27 Thread Rob Herring
On Sun, 26 Jul 2020 13:12:06 +0200, Konrad Dybcio wrote: > From: Xiaozhe Shi > > Add the REVID device driver. The REVID driver will print out the PMIC > revision at probe time. > > Signed-off-by: Xiaozhe Shi > [konradyb...@gmail.com: Fast-forward the driver from kernel 4.14 to 5.8, > convert

Re: [PATCH] i2c: iproc: fix race between client unreg and isr

2020-07-27 Thread Wolfram Sang
> Can you confirm that even if we have irq pending at the i2c IP core > level, as long as we execute Step 2. below (to disable/mask all slave > interrupts), after 'enable_irq' is called, we still will not receive any > further i2c slave interrupt? This is HW dependant. From my tests with Renesas

Re: [PATCH 9/9] soc/qcom: Add REVID driver

2020-07-27 Thread Rob Herring
On Sun, Jul 26, 2020 at 01:12:06PM +0200, Konrad Dybcio wrote: > From: Xiaozhe Shi > > Add the REVID device driver. The REVID driver will print out the PMIC > revision at probe time. > > Signed-off-by: Xiaozhe Shi > [konradyb...@gmail.com: Fast-forward the driver from kernel 4.14 to 5.8, >

Re: [PATCH v2] ata: use generic power management

2020-07-27 Thread Vaibhav Gupta
On Mon, Jul 27, 2020 at 11:59:05AM -0600, Jens Axboe wrote: > On 7/27/20 11:51 AM, Vaibhav Gupta wrote: > > On Mon, Jul 27, 2020 at 11:42:51AM -0600, Jens Axboe wrote: > >> On 7/27/20 11:40 AM, Vaibhav Gupta wrote: > >>> The patch is compile-tested only. > >> > >> Please test and verify actual

Re: [PATCH 2/2] drm/radeon: avoid a useless memset

2020-07-27 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jul 27, 2020 at 9:41 AM Christian König wrote: > > Am 27.07.20 um 12:34 schrieb Christophe JAILLET: > > Avoid a memset after a call to 'dma_alloc_coherent()'. > > This is useless since > > commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*")

[PATCH] MIPS: qi_lb60: Fix routing to audio amplifier

2020-07-27 Thread Paul Cercueil
The ROUT (right channel output of audio codec) was connected to INL (left channel of audio amplifier) instead of INR (right channel of audio amplifier). Fixes: 8ddebad15e9b ("MIPS: qi_lb60: Migrate to devicetree") Cc: sta...@vger.kernel.org # v5.3 Signed-off-by: Paul Cercueil ---

Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-27 Thread Tomasz Figa
On Mon, Jul 27, 2020 at 6:18 PM Ezequiel Garcia wrote: > > On Mon, 2020-07-27 at 16:52 +0200, Tomasz Figa wrote: > > On Mon, Jul 27, 2020 at 4:39 PM Ezequiel Garcia > > wrote: > > > Hi Alexandre, > > > > > > Thanks a lot for the review. > > > > > > On Sat, 2020-07-25 at 23:34 +0900, Alexandre

Re: USB: PHY: JZ4770: Add support for new Ingenic SoCs - bug report

2020-07-27 Thread Colin Ian King
Hi, Static analysis with Coverity has detected an issue with the following commit: commit 2a6c0b82e65128c73b5102e00e031c5e58bb3504 Author: 周琰杰 (Zhou Yanjie) Date: Thu Jul 23 14:13:00 2020 +0800 USB: PHY: JZ4770: Add support for new Ingenic SoCs. The analysis from Coverity is as follows:

Re: [PATCH] integrity: remove redundant initialization of variable ret

2020-07-27 Thread James Morris
On Wed, 1 Jul 2020, Colin King wrote: > From: Colin Ian King > > The variable ret is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. > > Addresses-Coverity: ("Unused value") >

Re: [PATCH 2/6] drm: dsi: Let host and device specify supported bus

2020-07-27 Thread Paul Cercueil
Hi Laurent, Le lun. 27 juil. 2020 à 20:02, Laurent Pinchart a écrit : Hi Paul, Thank you for the patch. On Mon, Jul 27, 2020 at 06:46:09PM +0200, Paul Cercueil wrote: The current MIPI DSI framework can very well be used to support MIPI DBI panels. In order to add support for the various

Re: a bug in genksysms/CONFIG_MODVERSIONS w/ __attribute__((foo))?

2020-07-27 Thread Nick Desaulniers
On Sun, Jul 26, 2020 at 4:31 PM Rob Simmons wrote: You may have forgotten to send a body; but yes genksysms is brittle and upstream development on it stopped years ago. Put an attribute someplace unexpected and the parser will silently fail, making the modversions hash all zeros, which doesn't

Re: [PATCH 3/6] drm/bridge: Add SPI DBI host driver

2020-07-27 Thread Paul Cercueil
Hi Laurent, Le lun. 27 juil. 2020 à 20:06, Laurent Pinchart a écrit : Hi Paul, Thank you for the patch. On Mon, Jul 27, 2020 at 06:46:10PM +0200, Paul Cercueil wrote: This driver will register a DBI host driver for panels connected over SPI. DBI types c1 and c3 are supported. C1 is a

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-27 Thread Steven Sistare
On 7/27/2020 1:07 PM, ebied...@xmission.com wrote: > Anthony Yznaga writes: > >> This patchset adds support for preserving an anonymous memory range across >> exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for >> sharing memory in this manner, as opposed to re-attaching

Re: [PATCH v2] ata: use generic power management

2020-07-27 Thread Jens Axboe
On 7/27/20 11:51 AM, Vaibhav Gupta wrote: > On Mon, Jul 27, 2020 at 11:42:51AM -0600, Jens Axboe wrote: >> On 7/27/20 11:40 AM, Vaibhav Gupta wrote: >>> The patch is compile-tested only. >> >> Please test and verify actual functionality, if you're serious about >> potentially getting this into the

[PATCH 1/1] netfilter: nat: add range checks for access to nf_nat_l[34]protos[]

2020-07-27 Thread Will McVicker
The indexes to the nf_nat_l[34]protos arrays come from userspace. So we need to make sure that before indexing the arrays, we verify the index is within the array bounds in order to prevent an OOB memory access. Here is an example kernel panic on 4.14.180 when userspace passes in an index greater

[PATCH][next] net/mlx5: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1]

[PATCH 0/1] Netfilter OOB memory access security patch

2020-07-27 Thread Will McVicker
Hi, The attached patch fixes an OOB memory access security bug. The bug is already fixed in the upstream kernel due to the vulnerable code being refactored in commit fe2d0020994c ("netfilter: nat: remove l4proto->in_range") and commit d6c4c8ffb5e5 ("netfilter: nat: remove l3proto struct"), but the

Re: [PATCH] dt-bindings: at25: fix syntax error in example code

2020-07-27 Thread Rob Herring
On Mon, Jul 27, 2020 at 4:05 AM Christian Eggers wrote: > > Add missing semicolon. > > Signed-off-by: Christian Eggers > --- > Documentation/devicetree/bindings/eeprom/at25.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) At this point, I'd prefer to see this converted to schema

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-27 Thread Nicolas Saenz Julienne
Hi Christoph, thanks for having a look at this! On Fri, 2020-07-24 at 15:41 +0200, Christoph Hellwig wrote: > Yes, the iommu is an interesting case, and the current code is > wrong for that. Care to expand on this? I do get that checking dma_coherent_ok() on memory that'll later on be mapped

Re: [PATCH v4 2/3] usb: dwc2: override PHY input signals with usb role switch support

2020-07-27 Thread Martin Blumenstingl
Hi Amelie, On Mon, Jul 27, 2020 at 11:23 AM Amelie Delaunay wrote: > > This patch adds support for usb role switch to dwc2, by using overriding > control of the PHY voltage valid and ID input signals. > > iddig signal (ID) can be overridden: > - when setting GUSBCFG_FORCEHOSTMODE, iddig input

[PATCH][next] bpf: fix swapped arguments in calls to check_buffer_access

2020-07-27 Thread Colin King
From: Colin Ian King There are a couple of arguments of the boolean flag zero_size_allowed and the char pointer buf_info when calling to function check_buffer_access that are swapped by mistake. Fix these by swapping them to correct the argument ordering. Addresses-Coverity: ("Array compared to

Re: [PATCH v2 0/3] media: vimc: Allow multiple capture devices to use the same sensor

2020-07-27 Thread Helen Koike
Hi, On 7/27/20 11:31 AM, Kieran Bingham wrote: > Hi all, > > +Dafna for the thread discussion, as she's missed from the to/cc list. > > > On 24/07/2020 13:21, Kaaira Gupta wrote: >> On Fri, Jul 24, 2020 at 02:15:21PM +0200, Niklas Söderlund wrote: >> Hi, >> >>> Hi Kaaira, >>> >>> Thanks for

Re: [PATCH v3] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-27 Thread Mike Kravetz
On 7/27/20 7:37 AM, Aneesh Kumar K.V wrote: > There is variant of this which is pseries powerpc where there is > hypervisor assistance w.r.t allocating gigantic pages. See the ppc64 > enablement patch > > https://lore.kernel.org/linuxppc-dev/20200713150749.25245-1-aneesh.ku...@linux.ibm.com/ >

Re: [PATCH v2] ata: use generic power management

2020-07-27 Thread Vaibhav Gupta
On Mon, Jul 27, 2020 at 11:42:51AM -0600, Jens Axboe wrote: > On 7/27/20 11:40 AM, Vaibhav Gupta wrote: > > The patch is compile-tested only. > > Please test and verify actual functionality, if you're serious about > potentially getting this into the kernel. > Hello Jens, Sadly I don't have the

Re: [PATCH v4 3/3] usb: dwc2: don't use ID/Vbus detection if usb-role-switch on STM32MP15 SoCs

2020-07-27 Thread Martin Blumenstingl
Hi Amelie, On Mon, Jul 27, 2020 at 11:23 AM Amelie Delaunay wrote: [...] > diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c > index a3611cdd1dea..65f8596f6795 100644 > --- a/drivers/usb/dwc2/params.c > +++ b/drivers/usb/dwc2/params.c > @@ -183,9 +183,11 @@ static void

Re: [PATCH v3 1/5] of_address: Add bus type match for pci ranges parser

2020-07-27 Thread Rob Herring
On Fri, Jul 24, 2020 at 7:45 PM Jiaxun Yang wrote: > > So the parser can be used to parse range property of ISA bus. > > As they're all using PCI-like method of range property, there is no need > start a new parser. > > Signed-off-by: Jiaxun Yang > > -- > v2: Drop useless check, fix some na for

[PATCH][next] net/mlx4: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

<    2   3   4   5   6   7   8   9   10   11   >