Searched refs:PTR_MAYBE_NULL (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/include/linux/ |
| H A D | bpf.h | 641 PTR_MAYBE_NULL = BIT(0 + BPF_BASE_TYPE_BITS), enumerator 799 ARG_PTR_TO_MEM_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MEM, 800 ARG_PTR_TO_CTX_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_CTX, 801 ARG_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_SOCKET, 802 ARG_PTR_TO_STACK_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_STACK, 803 ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID, 833 RET_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCKET, 953 PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | PTR_TO_MAP_VALUE, 954 PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | PTR_TO_SOCKET, 956 PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | PTR_TO_TCP_SOCK, [all …]
|
| H A D | bpf_verifier.h | 960 return type & PTR_MAYBE_NULL; in type_may_be_null()
|
| /linux-6.15/kernel/bpf/ |
| H A D | map_iter.c | 176 PTR_TO_BUF | PTR_MAYBE_NULL | MEM_RDONLY }, 178 PTR_TO_BUF | PTR_MAYBE_NULL },
|
| H A D | log.c | 468 if (type & PTR_MAYBE_NULL) { in reg_type_str()
|
| H A D | verifier.c | 2179 reg->type &= ~PTR_MAYBE_NULL; in mark_ptr_not_null_reg() 5863 ret = PTR_MAYBE_NULL; in btf_ld_kptr_type() 7212 flag |= MEM_RCU | PTR_MAYBE_NULL; in check_ptr_to_btf_access() 9132 if (arg_type & PTR_MAYBE_NULL) in check_reg_type() 9133 type &= ~PTR_MAYBE_NULL; in check_reg_type() 9178 case PTR_TO_BTF_ID | PTR_MAYBE_NULL: in check_reg_type() 10366 if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { in btf_check_func_arg_match() 11584 ret_flag &= ~PTR_MAYBE_NULL; in check_helper_call() 14323 if (ptr_reg->type & PTR_MAYBE_NULL) { in adjust_ptr_min_max_vals() 22727 reg->type |= PTR_MAYBE_NULL; in do_check_common() [all …]
|
| H A D | btf.c | 6773 (flag & PTR_MAYBE_NULL)) { in btf_ctx_access() 6812 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access() 6833 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access() 6844 info->reg_type |= PTR_MAYBE_NULL; in btf_ctx_access() 7801 sub->args[i].arg_type |= PTR_MAYBE_NULL; in btf_prepare_func_args() 7830 sub->args[i].arg_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL; in btf_prepare_func_args() 7832 sub->args[i].arg_type &= ~PTR_MAYBE_NULL; in btf_prepare_func_args()
|
| H A D | bpf_struct_ops.c | 272 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID | PTR_MAYBE_NULL; in prepare_arg_info()
|
| H A D | helpers.c | 724 .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,
|
| /linux-6.15/net/core/ |
| H A D | bpf_sk_storage.c | 907 PTR_TO_BUF | PTR_MAYBE_NULL },
|
| H A D | sock_map.c | 1948 PTR_TO_BUF | PTR_MAYBE_NULL | MEM_RDONLY },
|
| H A D | filter.c | 2049 .arg1_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, 2051 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, 2589 .arg2_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, 5135 .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | PTR_MAYBE_NULL,
|
| /linux-6.15/kernel/trace/ |
| H A D | bpf_trace.c | 449 .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, 493 .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY,
|