diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2020-06-29 12:56:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-07 10:34:02 +0300 |
commit | ca7ace8fd26d9ae4be3cf69f474ddcfb0e8506ce (patch) | |
tree | 8f4bd537fdfc94694dfe93652c1d91ea76f2e6a5 /scripts/gdb/linux/cpus.py | |
parent | 9fe975acb53fa4c35bd8fd9c1ec6a47056659b46 (diff) | |
download | linux-ca7ace8fd26d9ae4be3cf69f474ddcfb0e8506ce.tar.xz |
bpf: sockmap: Require attach_bpf_fd when detaching a program
commit bb0de3131f4c60a9bf976681e0fe4d1e55c7a821 upstream.
The sockmap code currently ignores the value of attach_bpf_fd when
detaching a program. This is contrary to the usual behaviour of
checking that attach_bpf_fd represents the currently attached
program.
Ensure that attach_bpf_fd is indeed the currently attached
program. It turns out that all sockmap selftests already do this,
which indicates that this is unlikely to cause breakage.
Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200629095630.7933-5-lmb@cloudflare.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions