aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2023-11-07 00:56:35 -0800
committerAlexei Starovoitov <ast@kernel.org>2023-11-09 19:07:51 -0800
commitf460e7bdb027d1da93f0c5090b239889cd46a33d (patch)
tree463f36a4f1d9048c1710da3fe469a9dda318ae32 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c
parent1500a5d9f49cb66906d3ea1c9158df25cc41dd40 (diff)
selftests/bpf: Add test passing MAYBE_NULL reg to bpf_refcount_acquire
The test added in this patch exercises the logic fixed in the previous patch in this series. Before the previous patch's changes, bpf_refcount_acquire accepts MAYBE_NULL local kptrs; after the change the verifier correctly rejects the such a call. Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com> Link: https://lore.kernel.org/r/20231107085639.3016113-3-davemarchevsky@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions