selftests/bpf: add trusted global subprog arg tests
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 30 Jan 2024 00:06:48 +0000 (16:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Jan 2024 17:41:50 +0000 (09:41 -0800)
commitc381203eadb76d5601fc04b814317e7608af5f5c
tree4d444f41e3e3e2410dc6faac1ce817127a40b4e2
parentd28bb1a86e68a3d523e0acee8281bb904dd7f451
selftests/bpf: add trusted global subprog arg tests

Add a bunch of test cases validating behavior of __arg_trusted and its
combination with __arg_nullable tag. We also validate CO-RE flavor
support by kernel for __arg_trusted args.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240130000648.2144827-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/verifier.c
tools/testing/selftests/bpf/progs/verifier_global_ptr_args.c [new file with mode: 0644]