Stanislav Fomichev
dbcc1ba26e
bpf: cgroup: properly use bpf_prog_array api
...
Now that we don't have __rcu markers on the bpf_prog_array helpers,
let's use proper rcu_dereference_protected to obtain array pointer
under mutex.
We also don't need __rcu annotations on cgroup_bpf.inactive since
it's not read/updated concurrently.
v4:
* drop cgroup_rcu_xyz wrappers and use rcu APIs directly; presumably
should be more clear to understand which mutex/refcount protects
each particular place
v3:
* amend cgroup_rcu_dereference to include percpu_ref_is_dying;
cgroup_bpf is now reference counted and we don't hold cgroup_mutex
anymore in cgroup_bpf_release
v2:
* replace xchg with rcu_swap_protected
Cc: Roman Gushchin <guro@fb.com >
Signed-off-by: Stanislav Fomichev <sdf@google.com >
Acked-by: Roman Gushchin <guro@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2019-05-29 15:17:35 +02:00
..
2019-05-16 11:05:11 -07:00
2019-05-16 09:19:14 -07:00
2019-05-15 18:50:40 -07:00
2019-05-19 10:58:45 -07:00
2019-05-15 18:21:43 -07:00
2019-05-21 11:28:39 +02:00
2019-05-20 08:21:07 -07:00
2019-05-21 11:28:46 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:40 +02:00
2019-05-14 19:52:52 -07:00
2019-05-19 10:58:45 -07:00
2019-05-15 18:21:43 -07:00
2019-05-14 10:30:10 -07:00
2019-05-21 11:28:46 +02:00
2019-05-14 09:47:48 -07:00
2019-05-14 19:52:50 -07:00
2019-05-14 19:52:49 -07:00
2019-05-24 18:58:37 -07:00
2019-05-29 15:17:35 +02:00
2019-05-29 15:17:35 +02:00
2019-05-28 09:30:02 -07:00
2019-05-15 13:21:37 -07:00
2019-05-14 19:52:48 -07:00
2019-05-18 15:52:26 -07:00
2019-05-14 07:57:29 -07:00
2019-05-14 19:52:50 -07:00
2019-05-21 11:28:40 +02:00
2019-05-15 17:35:54 +01:00
2019-05-24 18:58:37 -07:00
2019-05-15 16:05:47 -07:00
2019-05-14 09:47:47 -07:00
2019-05-14 09:47:48 -07:00
2019-05-21 11:28:39 +02:00
2019-05-14 09:47:44 -07:00
2019-05-14 09:47:48 -07:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-22 17:57:37 -07:00
2019-05-14 19:52:52 -07:00
2019-05-19 11:43:16 -07:00
2019-05-14 19:52:49 -07:00
2019-05-14 19:52:48 -07:00
2019-05-15 23:39:38 +02:00
2019-05-14 19:52:49 -07:00
2019-05-21 11:28:46 +02:00
2019-05-14 19:52:49 -07:00
2019-05-16 15:55:48 -07:00
2019-05-21 11:28:45 +02:00
2019-05-14 09:47:50 -07:00
2019-05-14 19:52:53 -07:00
2019-05-14 09:47:50 -07:00
2019-05-14 09:47:49 -07:00
2019-05-21 11:28:45 +02:00
2019-05-14 09:47:46 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 09:47:49 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 10:55:54 -07:00
2019-05-19 10:58:45 -07:00
2019-05-14 17:19:47 +02:00
2019-05-19 10:35:20 -07:00
2019-05-16 10:29:00 -07:00
2019-05-14 09:47:51 -07:00
2019-05-14 10:30:10 -07:00
2019-05-21 10:50:45 +02:00
2019-05-17 10:33:30 -07:00
2019-05-21 11:28:45 +02:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:48 -07:00
2019-05-17 10:08:59 -07:00
2019-05-14 19:52:51 -07:00
2019-05-16 09:45:20 -07:00
2019-05-21 11:28:46 +02:00
2019-05-21 11:28:46 +02:00
2019-05-14 19:52:48 -07:00
2019-05-16 12:17:50 -07:00
2019-05-16 15:51:55 -07:00
2019-05-21 11:28:46 +02:00
2019-05-16 16:16:18 -07:00
2019-05-14 09:47:45 -07:00
2019-05-18 15:52:26 -07:00
2019-05-14 09:47:45 -07:00
2019-05-15 17:35:54 +01:00