diff options
| author | Eduard Zingerman <[email protected]> | 2025-07-04 23:03:50 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-07-07 15:25:06 +0000 |
| commit | 182f7df70419f368c4310dc151677d574e53c44a (patch) | |
| tree | 845b14e07a40c56f8e333e936498ca85b4117ddd /tools/lib/bpf/bpf_helpers.h | |
| parent | selftests/bpf: ptr_to_btf_id struct walk ending with primitive pointer (diff) | |
| download | kernel-182f7df70419f368c4310dc151677d574e53c44a.tar.gz kernel-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 <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
