aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-07-15 00:54:17 +0000
committerDaniel Borkmann <[email protected]>2021-07-15 20:31:11 +0000
commit61f71e746c72f07097b759809c36e814387bc24f (patch)
treeaa1cea02d78063f25858cd2f30d5b12f9dd3793d /net/unix/af_unix.c
parentselftests/bpf: Add bpf_timer test. (diff)
downloadkernel-61f71e746c72f07097b759809c36e814387bc24f.tar.gz
kernel-61f71e746c72f07097b759809c36e814387bc24f.zip
selftests/bpf: Add a test with bpf_timer in inner map.
Check that map-in-map supports bpf timers. Check that indirect "recursion" of timer callbacks works: timer_cb1() { bpf_timer_set_callback(timer_cb2); } timer_cb2() { bpf_timer_set_callback(timer_cb1); } Check that bpf_map_release htab_free_prealloced_timers bpf_timer_cancel_and_free hrtimer_cancel works while timer cb is running. "while true; do ./test_progs -t timer_mim; done" is a great stress test. It caught missing timer cancel in htab->extra_elems. timer_mim_reject.c is a negative test that checks that timer<->map mismatch is prevented. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: Toke Høiland-Jørgensen <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions