Re: [PATCH] pid: add null pointer check in pid_nr_ns()

2020-12-04 Thread Alakesh Haloi
On Wed, Dec 02, 2020 at 11:19:46AM -0600, Eric W. Biederman wrote: > Alakesh Haloi writes: > > > There has been at least one occurrence where a null pointer derefernce > > panic was seen with following stack trace. > > > > #0 [ff800bcd3800] machine_kex

[PATCH] pid: add null pointer check in pid_nr_ns()

2020-11-30 Thread Alakesh Haloi
] pid_nr_ns at ff80080c20e8 Signed-off-by: Alakesh Haloi Cc: sta...@vger.kernel.org --- kernel/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/pid.c b/kernel/pid.c index a96bc4bf4f86..3767b9e1431d 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -474,7 +474,7 @@ pid_t

[PATCH] seccomp: fix compilation errors in seccomp-bpf kselftest

2019-08-22 Thread Alakesh Haloi
function); Signed-off-by: Alakesh Haloi --- tools/testing/selftests/seccomp/seccomp_bpf.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 6ef7f16c4cf5..2e619760fc3e 100644 --- a/tools/testing

Re: [PATCH] selftests: bpf: fix compiler warning

2019-05-28 Thread Alakesh Haloi
On Tue, May 28, 2019 at 09:45:14AM -0700, Song Liu wrote: > On Thu, May 23, 2019 at 5:31 PM Alakesh Haloi wrote: > > > > Add missing header file following compiler warning > > > > prog_tests/flow_dissector.c: In function ‘tx_tap’: > > prog_tests/flow_dis

[PATCH bpf v2] selftests: bpf: fix compiler warning

2019-05-28 Thread Alakesh Haloi
)); ^~ write Fixes: 0905beec9f52 ("selftests/bpf: run flow dissector tests in skb-less mode") Signed-off-by: Alakesh Haloi --- tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/

[PATCH] userfaultfd: selftest: fix compiler warning

2019-05-27 Thread Alakesh Haloi
Fixes following compiler warning userfaultfd.c: In function ‘usage’: userfaultfd.c:126:2: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, examples); Signed-off-by: Alakesh Haloi --- tools/testing/selftests/vm/userfaultfd.c | 2 +- 1

[PATCH] selftests: add missing include linux/sockios

2019-05-23 Thread Alakesh Haloi
p;tv)) ^~ SIOCGSTAMPNS Signed-off-by: Alakesh Haloi --- tools/testing/selftests/networking/timestamping/timestamping.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c i

[PATCH] selftests: kselftest: fix function return type

2019-05-23 Thread Alakesh Haloi
expressions [-Wsign-compare] if (ksft_plan != ksft_test_num()) ^~ Signed-off-by: Alakesh Haloi --- tools/testing/selftests/kselftest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h

[PATCH] selftests: bpf: fix compiler warning

2019-05-23 Thread Alakesh Haloi
)); ^~ write Signed-off-by: Alakesh Haloi --- tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c index fbd1d88a6095

[PATCH] tcp: Namespace-ify sysctl_tcp_rmem and sysctl_tcp_wmem

2019-02-13 Thread Alakesh Haloi
: Alakesh Haloi Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI Cc: Eric Dumazet Cc: # 4.14.x --- include/net/netns/ipv4.h | 2 ++ include/net/sock.h | 3 +++ include/net/tcp.h | 5 ++--- net/ipv4/syncookies.c | 2 +- net/ipv4/sysctl_net_ipv4.c | 34

[PATCH] sched/fair: Fix bandwidth timer clock drift condition

2019-01-16 Thread Alakesh Haloi
ared to match with coding style of the existing code in 4.14 Struct members of same type were declared in separate lines in upstream patch which has been changed back to having multiple members of same type in the same line. e.g. int a; int b; -> int a, b; ] Signed-off-by: Alakesh Halo