OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:16:47 +0000 (11:16 -0800)
commitf6bded8904218cc838971101eb216e0446bc0e1a
treef281a2a0f328ddcce6861542e3d4c0217acb1620
parentb0c0545076348e3f6183a942664a799482ddb8f8
bpf: do not blindly change rlimit in reuseport net selftest

[ Upstream commit 262f9d811c7608f1e74258ceecfe1fa213bdf912 ]

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

Fixes: 941ff6f11c02 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/reuseport_bpf.c