summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2022-05-12 01:16:53 +0530
committerAlexei Starovoitov <ast@kernel.org>2022-05-11 16:57:27 -0700
commit04accf794bb2a5a06f23f7d48d195ffa329181a6 (patch)
tree9b01d19c410bdea46a363aa3724f4d93d29535b5 /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
parent5cdccadcac2612f947ebc26ad7023dfb7e8871f9 (diff)
downloadlinux-04accf794bb2a5a06f23f7d48d195ffa329181a6.tar.bz2
selftests/bpf: Add negative C tests for kptrs
This uses the newly added SEC("?foo") naming to disable autoload of programs, and then loads them one by one for the object and verifies that loading fails and matches the returned error string from verifier. This is similar to already existing verifier tests but provides coverage for BPF C. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20220511194654.765705-4-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions