diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2024-02-04 22:23:49 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-02-05 19:58:47 -0800 |
commit | e8699c4ff85baedcf40f33db816cc487cee39397 (patch) | |
tree | b0dda80da2bdd867ad47d5d108bbea0e1e5f822c /tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c | |
parent | a44b1334aadd82203f661adb9adb41e53ad0e8d1 (diff) |
selftests/bpf: Add test for static subprog call in lock cs
Add selftests for static subprog calls within bpf_spin_lock critical
section, and ensure we still reject global subprog calls. Also test the
case where a subprog call will unlock the caller's held lock, or the
caller will unlock a lock taken by a subprog call, ensuring correct
transfer of lock state across frames on exit.
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: David Vernet <void@manifault.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20240204222349.938118-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c')
0 files changed, 0 insertions, 0 deletions