diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2025-03-01 15:18:45 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-03-15 18:48:25 +0000 |
| commit | b2bb70343477859736920539f43f611d7d2a35a6 (patch) | |
| tree | 0e9f254911ac64e4bfdd9af4ad2f6a33e09ce05c /tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c | |
| parent | bpf: Summarize sleepable global subprogs (diff) | |
| download | kernel-b2bb70343477859736920539f43f611d7d2a35a6.tar.gz kernel-b2bb70343477859736920539f43f611d7d2a35a6.zip | |
selftests/bpf: Test sleepable global subprogs in atomic contexts
Add tests for rejecting sleepable and accepting non-sleepable global
function calls in atomic contexts. For spin locks, we still reject
all global function calls. Once resilient spin locks land, we will
carefully lift in cases where we deem it safe.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c b/tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c index ebe0c12b5536..c9f855e5da24 100644 --- a/tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c +++ b/tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c @@ -81,6 +81,9 @@ static const char * const inproper_region_tests[] = { "nested_rcu_region", "rcu_read_lock_global_subprog_lock", "rcu_read_lock_global_subprog_unlock", + "rcu_read_lock_sleepable_helper_global_subprog", + "rcu_read_lock_sleepable_kfunc_global_subprog", + "rcu_read_lock_sleepable_global_subprog_indirect", }; static void test_inproper_region(void) |
