Files
erofs-linux/include/uapi/linux
Andrii Nakryiko 73b11c2ab0 bpf: Add support for forced LINK_DETACH command
Add LINK_DETACH command to force-detach bpf_link without destroying it. It has
the same behavior as auto-detaching of bpf_link due to cgroup dying for
bpf_cgroup_link or net_device being destroyed for bpf_xdp_link. In such case,
bpf_link is still a valid kernel object, but is defuncts and doesn't hold BPF
program attached to corresponding BPF hook. This functionality allows users
with enough access rights to manually force-detach attached bpf_link without
killing respective owner process.

This patch implements LINK_DETACH for cgroup, xdp, and netns links, mostly
re-using existing link release handling code.

Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
2020-08-01 20:38:28 -07:00
..
…
…
…
…
…
…
…
2020-05-28 11:22:14 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-04-27 16:29:41 +05:30
…
…
…
…
…
2020-07-19 19:20:22 -07:00
…
2020-07-10 13:54:00 -07:00
…
…
2020-06-24 21:34:11 +02:00
2020-05-14 16:44:25 +02:00
…
…
2020-05-28 22:09:47 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-19 19:20:22 -07:00
2020-07-24 17:12:41 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-13 15:32:56 -07:00
2020-04-20 12:43:24 -07:00
…
…
…
2020-07-24 17:12:41 -07:00
2020-07-19 19:20:22 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-05-01 10:00:19 -04:00
…
…
…
…
2020-05-21 08:20:35 -06:00
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
…
2020-07-09 12:38:41 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-05-21 17:04:07 -07:00
…
…
…
…
…
…
…
…
…
…
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-03-29 23:29:08 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-13 15:32:56 -07:00
2020-04-20 07:26:42 +02:00
…