Home
last modified time | relevance | path

Searched refs:PTR_UNTRUSTED (Results 1 – 6 of 6) sorted by relevance

/linux/kernel/bpf/
H A Dverifier.c362 (type == PTR_TO_MEM && !(reg->type & PTR_UNTRUSTED)) || in reg_not_null()
950 st->type |= PTR_UNTRUSTED; in mark_stack_slots_iter()
1036 if (st->type & PTR_UNTRUSTED) in is_iter_reg_valid_init()
4479 perm_flags |= PTR_UNTRUSTED; in map_kptr_match_type()
4536 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
4625 ret |= PTR_UNTRUSTED; in btf_ld_kptr_type()
6038 } else if (type_flag(reg->type) & PTR_UNTRUSTED) { in check_ptr_to_btf_access()
6042 flag = PTR_UNTRUSTED; in check_ptr_to_btf_access()
6072 flag & PTR_UNTRUSTED) in check_ptr_to_btf_access()
6073 flag &= ~PTR_UNTRUSTED; in check_ptr_to_btf_access()
[all …]
H A Dlog.c441 type & PTR_UNTRUSTED ? "untrusted_" : "", in reg_type_str()
H A Dbtf.c7127 if (BTF_INFO_KIND(t->info) == BTF_KIND_UNION && vlen != 1 && !(*flag & PTR_UNTRUSTED)) in btf_struct_walk()
7133 *flag |= PTR_UNTRUSTED; in btf_struct_walk()
7359 if (off + size > mtrue_end && !(*flag & PTR_UNTRUSTED)) { in btf_struct_walk()
7425 *flag = MEM_RDONLY | PTR_UNTRUSTED; in btf_struct_access()
8149 sub->args[i].arg_type = ARG_PTR_TO_MEM | MEM_RDONLY | PTR_UNTRUSTED; in btf_prepare_func_args()
8166 sub->args[i].arg_type = ARG_PTR_TO_BTF_ID | PTR_UNTRUSTED; in btf_prepare_func_args()
H A Ddiagnostics.c955 if (type_flag(type) & PTR_UNTRUSTED) in bpf_diag_reg_type_plain()
/linux/include/linux/
H A Dbpf_verifier.h1329 return type == PTR_TO_BTF_ID || (type_flag(type) & PTR_UNTRUSTED); in bpf_may_fault_on_deref()
H A Dbpf.h781 PTR_UNTRUSTED = BIT(6 + BPF_BASE_TYPE_BITS), enumerator