selftests/bpf: Add verifier tests for kptr
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sun, 24 Apr 2022 21:49:00 +0000 (03:19 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Apr 2022 03:26:44 +0000 (20:26 -0700)
commit05a945deefaa9fe6d34f06f0ab0cbfc72e2dbfa0
treef1dad884c68f7cc4ad26974764cf016d0cb4369a
parent2cbc469a6fc345651569f9570b899af3b005cf80
selftests/bpf: Add verifier tests for kptr

Reuse bpf_prog_test functions to test the support for PTR_TO_BTF_ID in
BPF map case, including some tests that verify implementation sanity and
corner cases.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220424214901.2743946-13-memxor@gmail.com
net/bpf/test_run.c
tools/testing/selftests/bpf/test_verifier.c
tools/testing/selftests/bpf/verifier/map_kptr.c [new file with mode: 0644]