diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-03-07 21:57:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-08 15:28:30 -0500 |
commit | b121d1e74d1f24654bdc3165d3db1ca149501356 (patch) | |
tree | aa0326edc95e2152a2277386b5363beb7768f7dc /Documentation/PCI | |
parent | 8aba8b83128a04197991518e241aafd3323b705d (diff) |
bpf: prevent kprobe+bpf deadlocks
if kprobe is placed within update or delete hash map helpers
that hold bucket spin lock and triggered bpf program is trying to
grab the spinlock for the same bucket on the same cpu, it will
deadlock.
Fix it by extending existing recursion prevention mechanism.
Note, map_lookup and other tracing helpers don't have this problem,
since they don't hold any locks and don't modify global data.
bpf_trace_printk has its own recursive check and ok as well.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/PCI')
0 files changed, 0 insertions, 0 deletions