aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2023-04-03 22:02:54 +0000
committerAndrii Nakryiko <[email protected]>2023-04-05 00:11:59 +0000
commitd099f594ad5650e8d8232b5f31f5f90104e65def (patch)
treee127edade69cd05d27e5c026aff374125de683f8 /tools/bpf/bpftool/prog.c
parentMerge branch 'bpf: Follow up to RCU enforcement in the verifier.' (diff)
downloadkernel-d099f594ad5650e8d8232b5f31f5f90104e65def.tar.gz
kernel-d099f594ad5650e8d8232b5f31f5f90104e65def.zip
kallsyms: Disable preemption for find_kallsyms_symbol_value
Artem reported suspicious RCU usage [1]. The reason is that verifier calls find_kallsyms_symbol_value with preemption enabled which will trigger suspicious RCU usage warning in rcu_dereference_sched call. Disabling preemption in find_kallsyms_symbol_value and adding __find_kallsyms_symbol_value function. Fixes: 31bf1dbccfb0 ("bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules") Reported-by: Artem Savkov <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Tested-by: Artem Savkov <[email protected]> Reviewed-by: Zhen Lei <[email protected]> Link: https://lore.kernel.org/bpf/[email protected] [1] https://lore.kernel.org/bpf/[email protected]/
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions