]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add tests for tail calls with locks and refs
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sun, 3 Nov 2024 22:59:40 +0000 (14:59 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 4 Nov 2024 00:52:06 +0000 (16:52 -0800)
commit711df091dea9b6f9e83ed738967cb0763f4d362c
tree4c7c61095be6eed18061191589d57458f5b19d80
parentd402755ced2ea8fc1f0513136f074002d509bfa0
selftests/bpf: Add tests for tail calls with locks and refs

Add failure tests to ensure bugs don't slip through for tail calls and
lingering locks, RCU sections, preemption disabled sections, and
references prevent tail calls.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241103225940.1408302-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/tailcalls.c
tools/testing/selftests/bpf/progs/tailcall_fail.c [new file with mode: 0644]