1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/bpf/map_tests
Xu Kuohai d59d3b8a3e bpf: Set and check spin lock value in sk_storage_map_test
Update sk_storage_map_test to make sure kernel does not copy user
non-zero value spin lock to kernel, and does not copy kernel spin
lock value to user.

If user spin lock value is copied to kernel, this test case will
make kernel spin on the copied lock, resulting in rcu stall and
softlockup.

Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/r/20221114134720.1057939-3-xukuohai@huawei.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-11-21 11:45:38 -08:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
array_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
htab_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
lpm_trie_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
map_in_map_batch_ops.c selftests/bpf: Handle batch operations for map-in-map bpf-maps 2022-05-10 10:34:57 -07:00
sk_storage_map.c bpf: Set and check spin lock value in sk_storage_map_test 2022-11-21 11:45:38 -08:00
task_storage_map.c selftests/bpf: Destroy the skeleton when CONFIG_PREEMPT is off 2022-09-22 16:41:27 -07:00