Searched refs:PTR_UNTRUSTED (Results 1 – 6 of 6) sorted by relevance
1352 return type == PTR_TO_BTF_ID || (type_flag(type) & PTR_UNTRUSTED); in bpf_may_fault_on_deref()1397 !(type_flag(type) & PTR_UNTRUSTED); in type_is_ptr_alloc_obj()
781 PTR_UNTRUSTED = BIT(6 + BPF_BASE_TYPE_BITS), enumerator
371 (type == PTR_TO_MEM && !(reg->type & PTR_UNTRUSTED)) || in reg_not_null()959 st->type |= PTR_UNTRUSTED; in mark_stack_slots_iter()1045 if (st->type & PTR_UNTRUSTED) in is_iter_reg_valid_init()4502 perm_flags |= PTR_UNTRUSTED; in map_kptr_match_type()4566 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()4655 ret |= PTR_UNTRUSTED; in btf_ld_kptr_type()6090 } else if (type_flag(reg->type) & PTR_UNTRUSTED) { in check_ptr_to_btf_access()6094 flag = PTR_UNTRUSTED; in check_ptr_to_btf_access()6124 flag & PTR_UNTRUSTED) in check_ptr_to_btf_access()6125 flag &= ~PTR_UNTRUSTED; in check_ptr_to_btf_access()[all …]
441 type & PTR_UNTRUSTED ? "untrusted_" : "", in reg_type_str()
7187 if (BTF_INFO_KIND(t->info) == BTF_KIND_UNION && vlen != 1 && !(*flag & PTR_UNTRUSTED)) in btf_struct_walk()7193 *flag |= PTR_UNTRUSTED; in btf_struct_walk()7419 if (off + size > mtrue_end && !(*flag & PTR_UNTRUSTED)) { in btf_struct_walk()7485 *flag = MEM_RDONLY | PTR_UNTRUSTED; in btf_struct_access()8209 sub->args[i].arg_type = ARG_PTR_TO_MEM | MEM_RDONLY | PTR_UNTRUSTED; in btf_prepare_func_args()8226 sub->args[i].arg_type = ARG_PTR_TO_BTF_ID | PTR_UNTRUSTED; in btf_prepare_func_args()
955 if (type_flag(type) & PTR_UNTRUSTED) in bpf_diag_reg_type_plain()