diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2025-07-04 16:03:52 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-07-07 08:25:07 -0700 |
commit | 54ac2c9418af2f115ca42419e6c6633b88f3d49d (patch) | |
tree | c862b54461c63e448461433894f68aa3de82d221 /scripts/lib/kdoc/kdoc_re.py | |
parent | aaa0e57e693083b997f21064689710dfe98b326c (diff) |
selftests/bpf: test cases for __arg_untrusted
Check usage of __arg_untrusted parameters with PTR_TO_BTF_ID:
- combining __arg_untrusted with other tags is forbidden;
- non-kernel (program local) types for __arg_untrusted are forbidden;
- passing of {trusted, untrusted, map value, scalar value, values with
variable offset} to untrusted is ok;
- passing of PTR_TO_BTF_ID with a different type to untrusted is ok;
- passing of untrusted to trusted is forbidden.
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250704230354.1323244-7-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions