Home
last modified time | relevance | path

Searched refs:PTR_MAYBE_NULL (Results 1 – 11 of 11) sorted by relevance

/linux/include/linux/
H A Dbpf.h751 PTR_MAYBE_NULL = BIT(0 + BPF_BASE_TYPE_BITS), enumerator
915 ARG_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MAP_VALUE,
916 ARG_PTR_TO_MEM_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MEM,
917 ARG_PTR_TO_CTX_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_CTX,
918 ARG_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_SOCKET,
919 ARG_PTR_TO_STACK_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_STACK,
920 ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID,
949 RET_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MAP_VALUE,
950 RET_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCKET,
951 RET_PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_TCP_SOCK,
[all …]
H A Dbpf_verifier.h1423 return type & PTR_MAYBE_NULL; in type_may_be_null()
/linux/kernel/bpf/
H A Dverifier.c1922 enum bpf_type_flag maybe_null = reg->type & PTR_MAYBE_NULL; in refine_map_lookup_value()
1944 reg->type &= ~PTR_MAYBE_NULL; in mark_ptr_not_null_reg()
4493 perm_flags = PTR_MAYBE_NULL | PTR_TRUSTED | MEM_RCU; in map_kptr_match_type()
4499 perm_flags = PTR_MAYBE_NULL | MEM_ALLOC; in map_kptr_match_type()
4638 ret = PTR_MAYBE_NULL; in btf_ld_kptr_type()
4665 reg->type = PTR_TO_MEM | PTR_MAYBE_NULL; in mark_uptr_ld_reg()
6107 flag |= PTR_TRUSTED | PTR_MAYBE_NULL; in check_ptr_to_btf_access()
6115 flag |= MEM_RCU | PTR_MAYBE_NULL; in check_ptr_to_btf_access()
8321 if (arg_type & PTR_MAYBE_NULL) in check_reg_type()
8322 type &= ~PTR_MAYBE_NULL; in check_reg_type()
[all …]
H A Dlog.c428 if (type & PTR_MAYBE_NULL) { in reg_type_str()
H A Dbtf.c6992 (type == PTR_TO_BUF && (flag & PTR_MAYBE_NULL)))) { in btf_ctx_access()
7032 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access()
7053 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access()
7064 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access()
8156 sub->args[i].arg_type |= PTR_MAYBE_NULL; in btf_prepare_func_args()
8217 sub->args[i].arg_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL; in btf_prepare_func_args()
8219 sub->args[i].arg_type &= ~PTR_MAYBE_NULL; in btf_prepare_func_args()
H A Dbpf_struct_ops.c299 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID | PTR_MAYBE_NULL; in prepare_arg_info()
H A Dhelpers.c727 .ret_type = RET_PTR_TO_MEM_OR_BTF_ID | PTR_MAYBE_NULL | MEM_RDONLY,
1098 .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
/linux/net/core/
H A Dbpf_sk_storage.c909 PTR_TO_BUF | PTR_MAYBE_NULL },
H A Dsock_map.c1980 PTR_TO_BUF | PTR_MAYBE_NULL | MEM_RDONLY },
H A Dfilter.c2066 .arg1_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
2068 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
2629 .arg2_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
5358 .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | PTR_MAYBE_NULL,
/linux/kernel/trace/
H A Dbpf_trace.c478 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
522 .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,