]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add test_verifier support to fixup kfunc call insns
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 14 Jan 2022 16:39:51 +0000 (22:09 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Jan 2022 22:26:42 +0000 (14:26 -0800)
commitcd4b2e75f4dd7d1f43e0d0865e342d2bd68a7a33
treebc10106b0dccb734df9251722a9c3ae25834e008
parentf1a7ea600efdbb7e36626d6071cd685bf0a03eb2
selftests/bpf: Add test_verifier support to fixup kfunc call insns

This allows us to add tests (esp. negative tests) where we only want to
ensure the program doesn't pass through the verifier, and also verify
the error. The next commit will add the tests making use of this.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220114163953.1455836-9-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c