Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbpf.h606 PTR_MAYBE_NULL = BIT(0 + BPF_BASE_TYPE_BITS), enumerator
763 ARG_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MAP_VALUE,
764 ARG_PTR_TO_MEM_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MEM,
765 ARG_PTR_TO_CTX_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_CTX,
766 ARG_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_SOCKET,
767 ARG_PTR_TO_STACK_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_STACK,
768 ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID,
797 RET_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MAP_VALUE,
798 RET_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCKET,
799 RET_PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_TCP_SOCK,
[all …]
H A Dbpf_verifier.h932 return type & PTR_MAYBE_NULL; in type_may_be_null()
/linux/kernel/bpf/
H A Dmap_iter.c176 PTR_TO_BUF | PTR_MAYBE_NULL | MEM_RDONLY },
178 PTR_TO_BUF | PTR_MAYBE_NULL },
H A Dlog.c468 if (type & PTR_MAYBE_NULL) { in reg_type_str()
H A Dverifier.c899 if (dreg->type != (PTR_TO_MEM | PTR_MAYBE_NULL) && dreg->type != PTR_TO_MEM) in destroy_if_dynptr_stack_slot()
1862 reg->type &= ~PTR_MAYBE_NULL; in mark_ptr_not_null_reg()
5347 perm_flags = PTR_MAYBE_NULL | PTR_TRUSTED | MEM_RCU; in map_kptr_match_type()
5353 perm_flags = PTR_MAYBE_NULL | MEM_ALLOC; in map_kptr_match_type()
5476 ret = PTR_MAYBE_NULL; in btf_ld_kptr_type()
6695 flag |= PTR_TRUSTED | PTR_MAYBE_NULL; in check_ptr_to_btf_access()
6703 flag |= MEM_RCU | PTR_MAYBE_NULL; in check_ptr_to_btf_access()
8469 if (arg_type & PTR_MAYBE_NULL) in check_reg_type()
8470 type &= ~PTR_MAYBE_NULL; in check_reg_type()
8513 case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: in check_reg_type()
[all …]
H A Dbpf_struct_ops.c275 PTR_TRUSTED | PTR_TO_BTF_ID | PTR_MAYBE_NULL; in prepare_arg_info()
H A Dhelpers.c724 .ret_type = RET_PTR_TO_MEM_OR_BTF_ID | PTR_MAYBE_NULL | MEM_RDONLY,
1079 .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
H A Dbtf.c6530 (flag & PTR_MAYBE_NULL)) { in btf_ctx_access()
6568 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access()
7515 sub->args[i].arg_type |= PTR_MAYBE_NULL; in btf_prepare_func_args()
7544 sub->args[i].arg_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL; in btf_prepare_func_args()
7546 sub->args[i].arg_type &= ~PTR_MAYBE_NULL; in btf_prepare_func_args()
/linux/net/core/
H A Dbpf_sk_storage.c915 PTR_TO_BUF | PTR_MAYBE_NULL },
H A Dsock_map.c1942 PTR_TO_BUF | PTR_MAYBE_NULL | MEM_RDONLY },
H A Dfilter.c2058 .arg1_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
2060 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
2597 .arg2_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
5121 .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | PTR_MAYBE_NULL,
/linux/kernel/trace/
H A Dbpf_trace.c459 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
503 .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
/linux/kernel/sched/
H A Dext.c5344 info->reg_type = PTR_MAYBE_NULL | PTR_TO_BTF_ID | PTR_TRUSTED; in set_arg_maybe_null()