diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2024-06-21 16:08:28 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-06-24 13:43:55 +0200 |
commit | 316930d06b92a2419d8e767193266e678545b31d (patch) | |
tree | d498031afe82edab178a71249bc585611b9ebe88 /kernel | |
parent | bpf: Fix overrunning reservations in ringbuf (diff) | |
download | linux-316930d06b92a2419d8e767193266e678545b31d.tar.xz linux-316930d06b92a2419d8e767193266e678545b31d.zip |
selftests/bpf: Add more ring buffer test coverage
Add test coverage for reservations beyond the ring buffer size in order
to validate that bpf_ringbuf_reserve() rejects the request with NULL, all
other ring buffer tests keep passing as well:
# ./vmtest.sh -- ./test_progs -t ringbuf
[...]
./test_progs -t ringbuf
[ 1.165434] bpf_testmod: loading out-of-tree module taints kernel.
[ 1.165825] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
[ 1.284001] tsc: Refined TSC clocksource calibration: 3407.982 MHz
[ 1.286871] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fc34e357, max_idle_ns: 440795379773 ns
[ 1.289555] clocksource: Switched to clocksource tsc
#274/1 ringbuf/ringbuf:OK
#274/2 ringbuf/ringbuf_n:OK
#274/3 ringbuf/ringbuf_map_key:OK
#274/4 ringbuf/ringbuf_write:OK
#274 ringbuf:OK
#275 ringbuf_multi:OK
[...]
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
[ Test fixups for getting BPF CI back to work ]
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240621140828.18238-2-daniel@iogearbox.net
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions