]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: do not blindly change rlimit in reuseport net selftest
authorEric Dumazet <edumazet@google.com>
Sat, 6 Oct 2018 02:38:46 +0000 (19:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Oct 2018 08:30:55 +0000 (10:30 +0200)
commit3b3a0744862f6cbe3bee3e8248dbf73c4e20bb5b
tree34c246bea7c2c7a7b737e879118098bb521b797a
parent9167f62d85a7fd7c07fa64271491030207ea48ef
bpf: do not blindly change rlimit in reuseport net selftest

If the current process has unlimited RLIMIT_MEMLOCK,
we should should leave it as is.

Fixes: 16bde1304e09 ("bpf: fix rlimit in reuseport net selftest")
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/net/reuseport_bpf.c