diff options
author | Alexei Starovoitov | 2024-03-07 17:08:04 -0800 |
---|---|---|
committer | Andrii Nakryiko | 2024-03-11 15:37:24 -0700 |
commit | 2edc3de6fb650924a87fffebebc3b7572cbf6e38 (patch) | |
tree | 507c3f99582f9326e792ab0a5078e424f1902520 /scripts | |
parent | 6082b6c328b5486da2b356eae94b8b83c98b5565 (diff) |
bpf: Recognize btf_decl_tag("arg: Arena") as PTR_TO_ARENA.
In global bpf functions recognize btf_decl_tag("arg:arena") as PTR_TO_ARENA.
Note, when the verifier sees:
__weak void foo(struct bar *p)
it recognizes 'p' as PTR_TO_MEM and 'struct bar' has to be a struct with scalars.
Hence the only way to use arena pointers in global functions is to tag them with "arg:arena".
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20240308010812.89848-7-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions