aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2024-02-05 05:56:46 +0000
committerAlexei Starovoitov <ast@kernel.org>2024-02-05 20:00:14 -0800
commit8be6a0147af314fd60db9da2158cd737dc6394a7 (patch)
tree5633630512456d6639125786010e2125253f83eb /tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
parent6fceea0fa59f6786a2847a4cae409117624e8b58 (diff)
selftests/bpf: Add tests for RCU lock transfer between subprogs
Add selftests covering the following cases: - A static or global subprog called from within a RCU read section works - A static subprog taking an RCU read lock which is released in caller works - A static subprog releasing the caller's RCU read lock works Global subprogs that leave the lock in an imbalanced state will not work, as they are verified separately, so ensure those cases fail as well. Acked-by: Yonghong Song <yonghong.song@linux.dev> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Acked-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/r/20240205055646.1112186-3-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c')
0 files changed, 0 insertions, 0 deletions