]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: tests for __arg_untrusted void * global func params
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 4 Jul 2025 23:03:54 +0000 (16:03 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 7 Jul 2025 15:25:07 +0000 (08:25 -0700)
commit68cca81fd57fd9f5b8fd8da0dccd1d00522592f9
treed4cda7b8249802c2b1bbbfc7de47889fe4e9ee5d
parentc4aa454c64ae022e5a9d55b3c31e9b8dd8a1544f
selftests/bpf: tests for __arg_untrusted void * global func params

Check usage of __arg_untrusted parameters of primitive type:
- passing of {trusted, untrusted, map value, scalar value, values with
  variable offset} to untrusted `void *`, `char *` or enum is ok;
- varifier represents such parameters as rdonly_untrusted_mem(sz=0).

Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250704230354.1323244-9-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_global_ptr_args.c