selftests/bpf: Test struct_ops program with __ref arg calling bpf_tail_call
authorAmery Hung <ameryhung@gmail.com>
Thu, 20 Feb 2025 22:15:32 +0000 (14:15 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Feb 2025 02:44:35 +0000 (18:44 -0800)
commit63817c771194a9d8e4906686c5c842ac545fcae9
tree7ec7d46d16fc17ae311e55a61b8e830792a959ab
parent38f1e66abd184c8f69b8d2c7d1ac02f32943b47b
selftests/bpf: Test struct_ops program with __ref arg calling bpf_tail_call

Test if the verifier rejects struct_ops program with __ref argument
calling bpf_tail_call().

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250220221532.1079331-2-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_struct_ops_refcounted.c
tools/testing/selftests/bpf/progs/struct_ops_refcounted_fail__tail_call.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c