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()
627 [PTR_TO_BTF_ID] = "ptr_", in reg_type_str()
636 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
1386 if (base_type(t) == PTR_TO_BTF_ID) in print_verifier_state()
2204 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
2539 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
4464 case PTR_TO_BTF_ID: in is_spillable_regtype()
5252 if (base_type(reg->type) != PTR_TO_BTF_ID || (type_flag(reg->type) & ~perm_flags)) in map_kptr_match_type()
5299 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
5301 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
5373 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, kptr_field->kptr.btf, in check_map_kptr_access()
5564 if (base_type(*reg_type) == PTR_TO_BTF_ID) { in check_ctx_access()
6464 if (ret != PTR_TO_BTF_ID) { in check_ptr_to_btf_access()
6579 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()
6818 if (base_type(reg_type) == PTR_TO_BTF_ID) { in check_mem_access()
6876 } else if (base_type(reg->type) == PTR_TO_BTF_ID && in check_mem_access()
7248 case PTR_TO_BTF_ID: in check_helper_mem_access()
8057 PTR_TO_BTF_ID,
8058 PTR_TO_BTF_ID | PTR_TRUSTED,
8074 PTR_TO_BTF_ID | PTR_TRUSTED,
8091 PTR_TO_BTF_ID | MEM_ALLOC,
8102 PTR_TO_BTF_ID,
8103 PTR_TO_BTF_ID | PTR_TRUSTED,
8104 PTR_TO_BTF_ID | MEM_RCU,
8109 PTR_TO_BTF_ID | MEM_PERCPU,
8110 PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED,
8207 if (base_type(reg->type) != PTR_TO_BTF_ID) in check_reg_type()
8222 case PTR_TO_BTF_ID: in check_reg_type()
8223 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_reg_type()
8224 case PTR_TO_BTF_ID | MEM_RCU: in check_reg_type()
8225 case PTR_TO_BTF_ID | PTR_MAYBE_NULL: in check_reg_type()
8226 case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: in check_reg_type()
8271 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_type()
8282 case PTR_TO_BTF_ID | MEM_PERCPU: in check_reg_type()
8283 case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: in check_reg_type()
8361 case PTR_TO_BTF_ID: in check_func_arg_reg_off()
8362 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
8363 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_func_arg_reg_off()
8364 case PTR_TO_BTF_ID | MEM_RCU: in check_func_arg_reg_off()
8365 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_func_arg_reg_off()
8366 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_func_arg_reg_off()
9526 callee->regs[BPF_REG_2].type = PTR_TO_BTF_ID; in set_find_vma_callback_state()
10307 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
10319 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
10819 if ((base_type(reg->type) == PTR_TO_BTF_ID || reg2btf_ids[base_type(reg->type)])) { in get_kfunc_ptr_arg_type()
10864 if (base_type(reg->type) == PTR_TO_BTF_ID) { in process_kf_arg_ptr_to_btf_id()
11023 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_allocation_locked()
11445 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11522 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11526 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
11536 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11540 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
11549 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11572 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
11588 if ((base_type(reg->type) != PTR_TO_BTF_ID || in check_kfunc_args()
11900 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
11909 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
11928 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; in check_kfunc_call()
11940 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; in check_kfunc_call()
12017 regs[BPF_REG_0].type = PTR_TO_BTF_ID; in check_kfunc_call()
14680 base_type(src_reg->type) != PTR_TO_BTF_ID && in check_cond_jmp_op()
14681 base_type(dst_reg->type) != PTR_TO_BTF_ID) { in check_cond_jmp_op()
14771 case PTR_TO_BTF_ID: in check_ld_imm()
16920 case PTR_TO_BTF_ID: in reg_type_mismatch_ok()
16965 base_type(type) == PTR_TO_BTF_ID && in save_aux_ptr_type()
16966 base_type(*prev_type) == PTR_TO_BTF_ID) { in save_aux_ptr_type()
16973 *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; in save_aux_ptr_type()
17433 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()
17453 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()
18355 case PTR_TO_BTF_ID: in convert_ctx_accesses()
18356 case PTR_TO_BTF_ID | PTR_UNTRUSTED: in convert_ctx_accesses()
18363 case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: in convert_ctx_accesses()