diff options
author | Hou Tao <houtao1@huawei.com> | 2023-12-04 22:04:25 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-12-04 17:50:27 -0800 |
commit | e3dd40828534a67931e0dd00fcd35846271fd4e8 (patch) | |
tree | b00bb98c69f23ce4e8e9ca2b06d056c07bef5b12 /tools/testing/selftests/bpf/prog_tests/map_init.c | |
parent | 1624918be84a8bcc4f592e55635bc4fe4a96460a (diff) |
selftests/bpf: Test outer map update operations in syscall program
Syscall program is running with rcu_read_lock_trace being held, so if
bpf_map_update_elem() or bpf_map_delete_elem() invokes
synchronize_rcu_tasks_trace() when operating on an outer map, there will
be dead-lock, so add a test to guarantee that it is dead-lock free.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20231204140425.1480317-8-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/map_init.c')
0 files changed, 0 insertions, 0 deletions