aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2025-07-04 16:03:50 -0700
committerAlexei Starovoitov <ast@kernel.org>2025-07-07 08:25:06 -0700
commit182f7df70419f368c4310dc151677d574e53c44a (patch)
tree845b14e07a40c56f8e333e936498ca85b4117ddd /tools/lib/bpf/bpf_helpers.h
parentselftests/bpf: ptr_to_btf_id struct walk ending with primitive pointer (diff)
downloadlinux-182f7df70419f368c4310dc151677d574e53c44a.tar.gz
linux-182f7df70419f368c4310dc151677d574e53c44a.zip
bpf: attribute __arg_untrusted for global function parameters
Add support for PTR_TO_BTF_ID | PTR_UNTRUSTED global function parameters. Anything is allowed to pass to such parameters, as these are read-only and probe read instructions would protect against invalid memory access. Suggested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20250704230354.1323244-5-eddyz87@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions