Lorenz Bauer
bb0de3131f
bpf: sockmap: Require attach_bpf_fd when detaching a program
...
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
2020-06-30 10:46:39 -07:00
..
2020-06-14 01:57:21 +09:00
2020-06-20 21:33:57 -07:00
2020-02-24 13:02:53 -08:00
2020-06-13 16:27:13 -07:00
2020-05-18 17:35:02 -07:00
2020-06-13 16:27:13 -07:00
2020-05-24 13:47:27 -07:00
2020-06-09 12:59:45 -07:00
2020-06-03 16:27:18 -07:00
2020-05-19 17:56:34 +02:00
2020-05-26 00:03:16 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-08 12:49:18 -07:00
2020-06-30 10:46:39 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-04-28 14:39:46 -07:00
2020-06-13 16:27:13 -07:00
2020-05-23 16:56:17 -07:00
2020-06-18 20:37:11 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2019-09-26 08:56:17 +02:00
2020-06-20 21:33:57 -07:00
2020-06-20 21:33:57 -07:00
2020-05-19 12:50:14 -07:00
2020-06-14 01:57:21 +09:00
2019-07-08 19:48:57 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-02-26 20:38:13 -08:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-18 20:25:51 -07:00
2020-06-14 01:57:21 +09:00
2020-06-19 20:12:58 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-09 12:59:45 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-04-27 02:07:40 -04:00
2020-05-23 16:36:05 -07:00
2020-06-14 01:57:21 +09:00
2020-06-15 12:58:59 -07:00
2019-12-16 10:15:49 +01:00
2020-06-09 12:59:45 -07:00
2020-06-20 21:31:43 -07:00
2020-06-20 21:33:57 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-11 12:22:41 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-05 13:18:26 -07:00
2019-08-10 15:25:47 -07:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-30 15:44:03 +02:00
2020-06-19 13:03:47 -07:00
2020-06-01 12:05:45 -07:00
2020-05-23 16:56:17 -07:00
2020-06-14 01:57:21 +09:00
2020-05-23 16:56:17 -07:00
2020-05-29 13:10:39 -07:00