Lines Matching refs:PTR_TO_BTF_ID
462 (type == PTR_TO_BTF_ID && is_trusted_reg(reg)) || in reg_not_null()
468 return base_type(type) == PTR_TO_BTF_ID && type_flag(type) & MEM_ALLOC; in type_is_ptr_alloc_obj()
616 [PTR_TO_BTF_ID] = "ptr_", in reg_type_str()
625 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
1375 if (base_type(t) == PTR_TO_BTF_ID) in print_verifier_state()
1989 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
2324 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
4209 case PTR_TO_BTF_ID: in is_spillable_regtype()
5004 if (base_type(reg->type) != PTR_TO_BTF_ID || (type_flag(reg->type) & ~perm_flags)) in map_kptr_match_type()
5051 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
5053 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
5125 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, kptr_field->kptr.btf, in check_map_kptr_access()
5318 if (base_type(*reg_type) == PTR_TO_BTF_ID) { in check_ctx_access()
6221 if (ret != PTR_TO_BTF_ID) { in check_ptr_to_btf_access()
6334 mark_btf_ld_reg(env, &map_reg, 0, PTR_TO_BTF_ID, btf_vmlinux, *map->ops->map_btf_id, 0); in check_ptr_to_map_access()
6572 if (base_type(reg_type) == PTR_TO_BTF_ID) { in check_mem_access()
6635 } else if (base_type(reg->type) == PTR_TO_BTF_ID && in check_mem_access()
7004 case PTR_TO_BTF_ID: in check_helper_mem_access()
7701 PTR_TO_BTF_ID,
7702 PTR_TO_BTF_ID | PTR_TRUSTED,
7718 PTR_TO_BTF_ID | PTR_TRUSTED,
7735 PTR_TO_BTF_ID | MEM_ALLOC,
7746 PTR_TO_BTF_ID,
7747 PTR_TO_BTF_ID | PTR_TRUSTED,
7748 PTR_TO_BTF_ID | MEM_RCU,
7753 PTR_TO_BTF_ID | MEM_PERCPU,
7754 PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED,
7851 if (base_type(reg->type) != PTR_TO_BTF_ID) in check_reg_type()
7866 case PTR_TO_BTF_ID: in check_reg_type()
7867 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_reg_type()
7868 case PTR_TO_BTF_ID | MEM_RCU: in check_reg_type()
7869 case PTR_TO_BTF_ID | PTR_MAYBE_NULL: in check_reg_type()
7870 case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: in check_reg_type()
7915 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_type()
7926 case PTR_TO_BTF_ID | MEM_PERCPU: in check_reg_type()
7927 case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: in check_reg_type()
8005 case PTR_TO_BTF_ID: in check_func_arg_reg_off()
8006 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
8007 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_func_arg_reg_off()
8008 case PTR_TO_BTF_ID | MEM_RCU: in check_func_arg_reg_off()
8009 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_func_arg_reg_off()
8010 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_func_arg_reg_off()
9139 callee->regs[BPF_REG_2].type = PTR_TO_BTF_ID; in set_find_vma_callback_state()
9867 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
9879 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
10379 if ((base_type(reg->type) == PTR_TO_BTF_ID || reg2btf_ids[base_type(reg->type)])) { in get_kfunc_ptr_arg_type()
10424 if (base_type(reg->type) == PTR_TO_BTF_ID) { in process_kf_arg_ptr_to_btf_id()
10583 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_allocation_locked()
11005 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11082 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11086 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
11096 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11100 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
11109 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11132 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11148 if ((base_type(reg->type) != PTR_TO_BTF_ID || in check_kfunc_args()
11455 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
11464 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
11483 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; in check_kfunc_call()
11495 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; in check_kfunc_call()
11572 regs[BPF_REG_0].type = PTR_TO_BTF_ID; in check_kfunc_call()
14227 base_type(src_reg->type) != PTR_TO_BTF_ID && in check_cond_jmp_op()
14228 base_type(dst_reg->type) != PTR_TO_BTF_ID) { in check_cond_jmp_op()
14318 case PTR_TO_BTF_ID: in check_ld_imm()
16367 case PTR_TO_BTF_ID: in reg_type_mismatch_ok()
16412 base_type(type) == PTR_TO_BTF_ID && in save_aux_ptr_type()
16413 base_type(*prev_type) == PTR_TO_BTF_ID) { in save_aux_ptr_type()
16420 *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; in save_aux_ptr_type()
16880 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()
16900 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()
17801 case PTR_TO_BTF_ID: in convert_ctx_accesses()
17802 case PTR_TO_BTF_ID | PTR_UNTRUSTED: in convert_ctx_accesses()
17809 case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: in convert_ctx_accesses()