]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c956d8541f6b92befc1870cac815e8004335b6d
treef1dad884c68f7cc4ad26974764cf016d0cb4369a
parentad9468b041ef6cda19d4f582824e3f9ad2c4cd98
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]