aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
diff options
context:
space:
mode:
authorXu Kuohai <xukuohai@huawei.com>2022-11-14 08:47:20 -0500
committerAlexei Starovoitov <ast@kernel.org>2022-11-21 11:45:38 -0800
commitd59d3b8a3ed1d9006c602d991d52b351ed851180 (patch)
treeac8d7fad28e76be189e3ced62730fffda253b2e5 /tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
parent836e49e103dfeeff670c934b7d563cbd982fce87 (diff)
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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c')
0 files changed, 0 insertions, 0 deletions