diff options
| author | Roman Gushchin <[email protected]> | 2018-07-13 12:41:11 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-07-18 15:01:54 +0200 |
| commit | 3960f4fd6585608e8cc285d9665821985494e147 (patch) | |
| tree | 3123a66bc1149da0330645b49bb331a482669318 /tools/perf/scripts/python | |
| parent | d29ab6e1fa21ebc2a8a771015dd9e0e5d4e28dc1 (diff) | |
bpf: fix rcu annotations in compute_effective_progs()
The progs local variable in compute_effective_progs() is marked
as __rcu, which is not correct. This is a local pointer, which
is initialized by bpf_prog_array_alloc(), which also now
returns a generic non-rcu pointer.
The real rcu-protected pointer is *array (array is a pointer
to an RCU-protected pointer), so the assignment should be performed
using rcu_assign_pointer().
Fixes: 324bda9e6c5a ("bpf: multi program support for cgroup+bpf")
Signed-off-by: Roman Gushchin <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions