selftests/bpf: verifier/value_ptr_arith converted to inline assembly
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 21 Apr 2023 17:42:34 +0000 (20:42 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Apr 2023 19:27:19 +0000 (12:27 -0700)
commit4db10a8243df665ced10b027c2d4862173a7a3ec
tree23c564803ef8231293480f7fcf2abdaaa44a2ad9
parentefe25a330b106f39e5d27760cc57def3e8c5a3f9
selftests/bpf: verifier/value_ptr_arith converted to inline assembly

Test verifier/value_ptr_arith automatically converted to use inline assembly.

Test cases "sanitation: alu with different scalars 2" and
"sanitation: alu with different scalars 3" are updated to
avoid -ENOENT as return value, as __retval() annotation
only supports numeric literals.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20230421174234.2391278-25-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/verifier.c
tools/testing/selftests/bpf/progs/verifier_value_ptr_arith.c [new file with mode: 0644]
tools/testing/selftests/bpf/verifier/value_ptr_arith.c [deleted file]