Files
twx-linux/include/linux
Lorenz Bauer ca7ace8fd2 bpf: sockmap: Require attach_bpf_fd when detaching a program
commit bb0de3131f 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: 604326b41a ("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>
2020-08-07 09:34:02 +02:00
..
2020-02-19 19:53:09 +01:00
2020-05-20 08:20:29 +02:00
2020-03-25 08:25:58 +01:00
2019-12-13 08:42:53 +01:00
2020-06-24 17:50:47 +02:00
2019-12-13 08:43:18 +01:00
2020-07-29 10:18:36 +02:00
2020-03-18 07:17:46 +01:00
2020-04-17 10:50:12 +02:00
2020-04-02 15:11:00 +02:00
2020-05-20 08:20:29 +02:00
2020-04-02 15:11:00 +02:00