]> Gentwo Git Trees - linux/.git/commit
selftests: bpf: Add tests for unbalanced rcu_read_lock
authorPuranjay Mohan <puranjay@kernel.org>
Mon, 17 Nov 2025 20:04:10 +0000 (20:04 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 22 Nov 2025 02:34:59 +0000 (18:34 -0800)
commitcf49ec5705a6fb635ac9c2626f9ac7a39344b1f5
tree826d07187b4c1d515421716f825be8cccca570e2
parent4167096cb964325ed88cd558f5b0c61fcaab44c1
selftests: bpf: Add tests for unbalanced rcu_read_lock

As verifier now supports nested rcu critical sections, add new test
cases to make sure unbalanced usage of rcu_read_lock()/unlock() is
rejected.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251117200411.25563-3-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c
tools/testing/selftests/bpf/progs/rcu_read_lock.c