selftests/bpf: Add test for strict BTF type check
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sun, 24 Apr 2022 21:49:01 +0000 (03:19 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Apr 2022 03:26:45 +0000 (20:26 -0700)
commit792c0a345f0eb2a6bb12afcca1cf6e518bf57b43
tree5331a23b54ef32a3d8e1a8fab6838c38c167fc49
parent05a945deefaa9fe6d34f06f0ab0cbfc72e2dbfa0
selftests/bpf: Add test for strict BTF type check

Ensure that the edge case where first member type was matched
successfully even if it didn't match BTF type of register is caught and
rejected by the verifier.

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-14-memxor@gmail.com
net/bpf/test_run.c
tools/testing/selftests/bpf/verifier/calls.c