Files
kernel_arpi/include/linux
Andrii Nakryiko 0c991ebc8c bpf: Implement bpf_prog replacement for an active bpf_cgroup_link
Add new operation (LINK_UPDATE), which allows to replace active bpf_prog from
under given bpf_link. Currently this is only supported for bpf_cgroup_link,
but will be extended to other kinds of bpf_links in follow-up patches.

For bpf_cgroup_link, implemented functionality matches existing semantics for
direct bpf_prog attachment (including BPF_F_REPLACE flag). User can either
unconditionally set new bpf_prog regardless of which bpf_prog is currently
active under given bpf_link, or, optionally, can specify expected active
bpf_prog. If active bpf_prog doesn't match expected one, no changes are
performed, old bpf_link stays intact and attached, operation returns
a failure.

cgroup_bpf_replace() operation is resolving race between auto-detachment and
bpf_prog update in the same fashion as it's done for bpf_link detachment,
except in this case update has no way of succeeding because of target cgroup
marked as dying. So in this case error is returned.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200330030001.2312810-3-andriin@fb.com
2020-03-30 17:36:33 -07:00
..
2020-02-16 18:30:41 -08:00
2020-01-27 14:35:32 +01:00
2020-01-23 12:37:18 +00:00
2020-02-04 03:05:26 +00:00
2020-02-04 03:05:26 +00:00
2020-03-30 01:34:00 +02:00
2020-01-23 00:35:50 +01:00
2020-01-27 11:09:31 +01:00
2020-01-17 16:48:07 -08:00
2020-01-18 09:19:18 -05:00
2020-01-13 21:48:42 +01:00
2020-03-13 12:49:51 -07:00
2020-01-31 17:33:54 +00:00
2020-02-20 21:17:24 +01:00
2020-01-15 10:54:33 -05:00
2020-01-14 12:20:48 +01:00
2020-01-16 17:09:18 +01:00
2020-01-15 16:30:28 +00:00
2020-03-05 17:36:24 -08:00
2020-03-14 20:55:12 -07:00
2020-03-12 17:33:11 -07:00
2020-01-13 18:16:43 -08:00
2020-01-10 14:00:58 -08:00
2020-01-24 10:24:31 -08:00
2020-01-24 10:24:31 -08:00
2020-02-04 03:05:24 +00:00
2020-02-04 03:05:26 +00:00
2020-02-26 20:07:25 -08:00
2020-02-21 11:22:15 -08:00
2020-01-14 12:20:48 +01:00
2020-01-17 22:33:37 -05:00