diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-01-29 16:06:46 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-01-30 09:41:50 -0800 |
commit | 8f2b44cd9d69ec36c9ce9623993978babb575ee8 (patch) | |
tree | 45c7502fc70ead45db93a3891838d7f2c364d6ac /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
parent | e2b3c4ff5d183da6d1863c2321413406a2752e7a (diff) | |
download | linux-8f2b44cd9d69ec36c9ce9623993978babb575ee8.tar.gz linux-8f2b44cd9d69ec36c9ce9623993978babb575ee8.tar.bz2 linux-8f2b44cd9d69ec36c9ce9623993978babb575ee8.zip |
bpf: add arg:nullable tag to be combined with trusted pointers
Add ability to mark arg:trusted arguments with optional arg:nullable
tag to mark it as PTR_TO_BTF_ID_OR_NULL variant, which will allow
callers to pass NULL, and subsequently will force global subprog's code
to do NULL check. This allows to have "optional" PTR_TO_BTF_ID values
passed into global subprogs.
For now arg:nullable cannot be combined with anything else.
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240130000648.2144827-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions