]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: tracing: properly use bpf_prog_array api
authorStanislav Fomichev <sdf@google.com>
Tue, 28 May 2019 21:14:44 +0000 (14:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 13:17:35 +0000 (15:17 +0200)
commit943bd4ce0b0a93b1669a94d8531f821247b31a4e
tree0d508e5f0d220b177707211d90a206265a5aa9cb
parent2be9bb65abaa2ac8ae058827de9df4879fb88d70
bpf: tracing: 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.

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/trace/bpf_trace.c