selftests/bpf: Add tests for bpf_rcu_read_lock()
authorYonghong Song <yhs@fb.com>
Thu, 24 Nov 2022 05:32:22 +0000 (21:32 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Nov 2022 20:54:34 +0000 (12:54 -0800)
commit48671232fcb81b76be13c11b0df7089b16baea57
treebc22391f45fa9560aab584e038cbd0d65e7b15be
parent9bb00b2895cbfe0ad410457b605d0a72524168c1
selftests/bpf: Add tests for bpf_rcu_read_lock()

Add a few positive/negative tests to test bpf_rcu_read_lock()
and its corresponding verifier support. The new test will fail
on s390x and aarch64, so an entry is added to each of their
respective deny lists.

Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20221124053222.2374650-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/DENYLIST.aarch64
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/rcu_read_lock.c [new file with mode: 0644]