summaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2020-07-09 14:51:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-07 10:34:02 +0300
commit9fe975acb53fa4c35bd8fd9c1ec6a47056659b46 (patch)
tree3ae0265f6180eead4e94f44318d84895af61f607 /scripts/gen_compile_commands.py
parentc776104353550d4983ccc437aa40509f53b2227b (diff)
downloadlinux-9fe975acb53fa4c35bd8fd9c1ec6a47056659b46.tar.xz
selftests: bpf: Fix detach from sockmap tests
commit f43cb0d672aa8eb09bfdb779de5900c040487d1d upstream. Fix sockmap tests which rely on old bpf_prog_dispatch behaviour. In the first case, the tests check that detaching without giving a program succeeds. Since these are not the desired semantics, invert the condition. In the second case, the clean up code doesn't supply the necessary program fds. Fixes: bb0de3131f4c ("bpf: sockmap: Require attach_bpf_fd when detaching a program") Reported-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com> Link: https://lore.kernel.org/bpf/20200709115151.75829-1-lmb@cloudflare.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions