summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorHao Luo <haoluo@google.com>2021-12-16 16:31:45 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-12-18 12:47:24 -0800
commit48946bd6a5d695c50b34546864b79c1f910a33c1 (patch)
treed3862adb9cf035077ed58618c807cd930e2d70d8 /crypto
parentd639b9d13a39cf15639cbe6e8b2c43eb60148a73 (diff)
downloadlinux-48946bd6a5d695c50b34546864b79c1f910a33c1.tar.gz
linux-48946bd6a5d695c50b34546864b79c1f910a33c1.tar.bz2
linux-48946bd6a5d695c50b34546864b79c1f910a33c1.zip
bpf: Replace ARG_XXX_OR_NULL with ARG_XXX | PTR_MAYBE_NULL
We have introduced a new type to make bpf_arg composable, by reserving high bits of bpf_arg to represent flags of a type. One of the flags is PTR_MAYBE_NULL which indicates a pointer may be NULL. When applying this flag to an arg_type, it means the arg can take NULL pointer. This patch switches the qualified arg_types to use this flag. The arg_types changed in this patch include: 1. ARG_PTR_TO_MAP_VALUE_OR_NULL 2. ARG_PTR_TO_MEM_OR_NULL 3. ARG_PTR_TO_CTX_OR_NULL 4. ARG_PTR_TO_SOCKET_OR_NULL 5. ARG_PTR_TO_ALLOC_MEM_OR_NULL 6. ARG_PTR_TO_STACK_OR_NULL This patch does not eliminate the use of these arg_types, instead it makes them an alias to the 'ARG_XXX | PTR_MAYBE_NULL'. Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211217003152.48334-3-haoluo@google.com
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions