summaryrefslogtreecommitdiffstats
path: root/kernel/tracepoint.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2021-08-10 01:51:51 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2021-08-10 10:10:49 +0200
commit87b7b5335e6995a6d64fca98fc67b92b29caac9c (patch)
tree11879d3cfc48083ece2a1f0e9960aed3bcca8792 /kernel/tracepoint.c
parentbpf: Add lockdown check for probe_write_user helper (diff)
downloadlinux-87b7b5335e6995a6d64fca98fc67b92b29caac9c.tar.xz
linux-87b7b5335e6995a6d64fca98fc67b92b29caac9c.zip
bpf: Add missing bpf_read_[un]lock_trace() for syscall program
Commit 79a7f8bdb159d ("bpf: Introduce bpf_sys_bpf() helper and program type.") added support for syscall program, which is a sleepable program. But the program run missed bpf_read_lock_trace()/bpf_read_unlock_trace(), which is needed to ensure proper rcu callback invocations. This patch adds bpf_read_[un]lock_trace() properly. Fixes: 79a7f8bdb159d ("bpf: Introduce bpf_sys_bpf() helper and program type.") Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210809235151.1663680-1-yhs@fb.com
Diffstat (limited to 'kernel/tracepoint.c')
0 files changed, 0 insertions, 0 deletions