aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorKP Singh <[email protected]>2021-02-04 19:36:21 +0000
committerAndrii Nakryiko <[email protected]>2021-02-04 16:35:00 -0800
commitba90c2cc0231124d6de63576e8bdf371e92c8fd3 (patch)
treed73401b0c9eb95ec9c8d8a9fccdaedaed62e6496 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentec45c5faa2f4b3d53d6c04a334eb51d37d90cb56 (diff)
bpf: Allow usage of BPF ringbuffer in sleepable programs
The BPF ringbuffer map is pre-allocated and the implementation logic does not rely on disabling preemption or per-cpu data structures. Using the BPF ringbuffer sleepable LSM and tracing programs does not trigger any warnings with DEBUG_ATOMIC_SLEEP, DEBUG_PREEMPT, PROVE_RCU and PROVE_LOCKING and LOCKDEP enabled. This allows helpers like bpf_copy_from_user and bpf_ima_inode_hash to write to the BPF ring buffer from sleepable BPF programs. Signed-off-by: KP Singh <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions