diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2020-07-09 12:51:51 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-09 23:41:37 +0200 |
commit | f43cb0d672aa8eb09bfdb779de5900c040487d1d (patch) | |
tree | 7091bfdbb53f352d9e692aeb7d245cfab7807d70 /.gitignore | |
parent | c9a368f1c0fbe2e3a21ebf231caeae58b18b2681 (diff) |
selftests: bpf: Fix detach from sockmap tests
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
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions