Lines Matching refs:PTR_TO_BTF_ID

413 		(type == PTR_TO_BTF_ID && is_trusted_reg(reg)) ||  in reg_not_null()
2257 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
2848 case PTR_TO_BTF_ID: in mark_btf_ld_reg()
2850 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
4977 case PTR_TO_BTF_ID: in is_spillable_regtype()
5855 if (base_type(reg->type) != PTR_TO_BTF_ID || (type_flag(reg->type) & ~perm_flags)) in map_kptr_match_type()
5902 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
5904 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
6052 ret = mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, in check_map_kptr_access()
6241 if (base_type(info->reg_type) == PTR_TO_BTF_ID) { in check_ctx_access()
7295 if (ret != PTR_TO_BTF_ID) { in check_ptr_to_btf_access()
7413 ret = mark_btf_ld_reg(env, &map_reg, 0, PTR_TO_BTF_ID, in check_ptr_to_map_access()
7684 if (base_type(info.reg_type) == PTR_TO_BTF_ID) { in check_mem_access()
7743 } else if (base_type(reg->type) == PTR_TO_BTF_ID && in check_mem_access()
8229 case PTR_TO_BTF_ID: in check_helper_mem_access()
9143 PTR_TO_BTF_ID,
9144 PTR_TO_BTF_ID | PTR_TRUSTED,
9160 PTR_TO_BTF_ID | PTR_TRUSTED,
9167 PTR_TO_BTF_ID | MEM_ALLOC,
9178 PTR_TO_BTF_ID,
9179 PTR_TO_BTF_ID | PTR_TRUSTED,
9180 PTR_TO_BTF_ID | MEM_RCU,
9185 PTR_TO_BTF_ID | MEM_PERCPU,
9186 PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU,
9187 PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED,
9197 PTR_TO_BTF_ID | MEM_ALLOC
9290 if (base_type(reg->type) != PTR_TO_BTF_ID) in check_reg_type()
9305 case PTR_TO_BTF_ID: in check_reg_type()
9306 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_reg_type()
9307 case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: in check_reg_type()
9308 case PTR_TO_BTF_ID | MEM_RCU: in check_reg_type()
9309 case PTR_TO_BTF_ID | PTR_MAYBE_NULL: in check_reg_type()
9310 case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: in check_reg_type()
9355 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_type()
9356 case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: in check_reg_type()
9368 case PTR_TO_BTF_ID | MEM_PERCPU: in check_reg_type()
9369 case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: in check_reg_type()
9370 case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: in check_reg_type()
9449 case PTR_TO_BTF_ID: in check_func_arg_reg_off()
9450 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
9451 case PTR_TO_BTF_ID | PTR_TRUSTED: in check_func_arg_reg_off()
9452 case PTR_TO_BTF_ID | MEM_RCU: in check_func_arg_reg_off()
9453 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_func_arg_reg_off()
9454 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_func_arg_reg_off()
10861 callee->regs[BPF_REG_2].type = PTR_TO_BTF_ID; in set_find_vma_callback_state()
11765 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; in check_helper_call()
11773 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
11787 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
12417 if ((base_type(reg->type) == PTR_TO_BTF_ID || reg2btf_ids[base_type(reg->type)])) { in get_kfunc_ptr_arg_type()
12463 if (base_type(reg->type) == PTR_TO_BTF_ID) { in process_kf_arg_ptr_to_btf_id()
12681 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_allocation_locked()
13218 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13223 } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { in check_kfunc_args()
13304 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13308 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
13318 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13322 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
13331 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13345 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13376 if ((base_type(reg->type) != PTR_TO_BTF_ID || in check_kfunc_args()
13492 if (reg->type != PTR_TO_MAP_VALUE && reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13651 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_special_kfunc()
13661 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_special_kfunc()
13678 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; in check_special_kfunc()
13689 regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; in check_special_kfunc()
14020 regs[BPF_REG_0].type = PTR_TO_BTF_ID; in check_kfunc_call()
14513 case PTR_TO_BTF_ID: in adjust_ptr_min_max_vals()
16815 base_type(src_reg->type) != PTR_TO_BTF_ID && in check_cond_jmp_op()
16816 base_type(dst_reg->type) != PTR_TO_BTF_ID) { in check_cond_jmp_op()
16906 case PTR_TO_BTF_ID: in check_ld_imm()
19692 case PTR_TO_BTF_ID: in reg_type_mismatch_ok()
19722 case PTR_TO_BTF_ID: in is_ptr_to_mem_or_btf_id()
19767 merged_type = PTR_TO_BTF_ID; in save_aux_ptr_type()
20274 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in __check_pseudo_btf_id()
20293 aux->btf_var.reg_type = PTR_TO_BTF_ID; in __check_pseudo_btf_id()
21381 case PTR_TO_BTF_ID: in convert_ctx_accesses()
21382 case PTR_TO_BTF_ID | PTR_UNTRUSTED: in convert_ctx_accesses()
21389 case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: in convert_ctx_accesses()
23214 reg->type = PTR_TO_BTF_ID; in do_check_common()