selftests/bpf: add anonymous user struct as global subprog arg test
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 12 Feb 2024 23:32:21 +0000 (15:32 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 14 Feb 2024 02:46:47 +0000 (18:46 -0800)
commit63d5a33fb4ec2a4ed6907c8ac144b6f10f6dba47
tree26d39c1ca7d67401245a928139012ad7624faad1
parent879bbe7aa4afa80acf72a1cad7f52416ea78c52d
selftests/bpf: add anonymous user struct as global subprog arg test

Add tests validating that kernel handles pointer to anonymous struct
argument as PTR_TO_MEM case, not as PTR_TO_CTX case.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240212233221.2575350-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_global_subprogs.c