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
..
2018-11-14 10:56:33 -08:00
2019-05-16 11:05:11 -07:00
2019-05-16 09:19:14 -07:00
2018-11-12 10:33:49 +01:00
2019-05-02 10:37:55 +09:00
2019-05-03 18:05:27 +02:00
2019-05-14 10:30:10 -07:00
2019-04-15 18:14:01 -04:00
2019-05-14 19:52:50 -07:00
2018-11-07 13:44:59 -07:00
2018-11-07 13:44:59 -07:00
2019-04-09 17:05:46 -07:00
2019-05-07 08:39:02 -06:00
2019-03-07 12:20:11 -08:00
2019-04-19 11:26:48 -07:00
2019-05-09 15:25:13 -04:00
2019-05-10 05:29:27 -07:00
2018-11-13 21:55:24 +01:00
2019-02-28 03:28:53 -05:00
2019-02-28 08:24:23 -07:00
2018-12-19 10:42:08 +01:00
\n
2019-05-13 15:08:16 -07:00
\n
2019-05-13 15:08:16 -07:00
2019-03-12 10:04:02 -07:00
2019-04-22 09:48:12 -06:00
2019-02-15 16:54:38 +01:00
2018-10-21 10:46:33 -04:00
2019-05-22 17:57:37 -07:00
2018-11-07 13:42:32 -07:00
2019-03-22 14:36:02 +01:00
2019-05-01 07:47:37 -07:00
2018-11-19 19:03:46 -07:00
2019-02-23 10:53:31 +01:00
2019-04-08 22:56:14 +02:00
2019-03-28 10:58:28 +01:00
2019-05-07 18:48:09 -07:00
2018-12-06 13:57:03 +01:00
2019-05-15 23:39:38 +02:00
2019-03-16 13:05:32 -07:00
2018-11-30 13:29:04 +00:00
2019-03-07 18:32:03 -08:00
2019-05-13 09:23:18 -04:00
2019-05-14 10:55:54 -07:00
2019-01-30 20:51:47 -05:00
2019-04-19 14:07:40 -07:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:10 -07:00
2018-12-06 15:45:46 +01:00
2019-02-08 15:02:49 -08:00
2019-03-05 21:07:19 -08:00
2019-05-14 09:47:51 -07:00
2018-10-21 10:46:39 -04:00
2019-05-14 10:30:10 -07:00
2018-10-26 16:26:35 -07:00
2019-05-07 14:31:03 +02:00
2019-04-26 11:09:55 -07:00
2019-03-12 10:04:03 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:48 -07:00
2018-12-03 17:11:02 -08:00
2019-04-02 17:57:35 +02:00
2019-05-08 22:14:36 +02:00
2019-05-16 15:51:55 -07:00
2019-03-15 15:29:47 -07:00
2019-02-07 16:38:35 +01:00
2019-03-10 12:47:57 -07:00
2019-05-06 19:40:31 -07:00
2019-02-07 00:13:27 +01:00
2018-12-10 10:17:45 +01:00
2019-04-06 10:48:35 -06:00
2019-05-01 08:38:47 -06:00
2019-01-11 18:05:40 -08:00
2019-04-30 12:37:51 +02:00
2019-05-08 10:03:52 -07:00
2019-05-15 17:35:54 +01:00
2019-04-09 15:14:49 -06:00
2018-12-22 12:15:29 +01:00
2019-03-06 14:52:48 -08:00