aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-01-30 00:06:47 +0000
committerAlexei Starovoitov <[email protected]>2024-01-30 17:41:50 +0000
commitd28bb1a86e68a3d523e0acee8281bb904dd7f451 (patch)
tree68c3f0fffa3d5b2c2394a9f3e7dca317d20c2546 /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
parentbpf: add arg:nullable tag to be combined with trusted pointers (diff)
downloadkernel-d28bb1a86e68a3d523e0acee8281bb904dd7f451.tar.gz
kernel-d28bb1a86e68a3d523e0acee8281bb904dd7f451.zip
libbpf: add __arg_trusted and __arg_nullable tag macros
Add __arg_trusted to annotate global func args that accept trusted PTR_TO_BTF_ID arguments. Also add __arg_nullable to combine with __arg_trusted (and maybe other tags in the future) to force global subprog itself (i.e., callee) to do NULL checks, as opposed to default non-NULL semantics (and thus caller's responsibility to ensure non-NULL values). Acked-by: Eduard Zingerman <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions