Lines Matching refs:MEM_ALLOC
2186 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
5736 perm_flags = PTR_MAYBE_NULL | MEM_ALLOC; in map_kptr_match_type()
5869 ret |= MEM_ALLOC; in btf_ld_kptr_type()
9036 PTR_TO_BTF_ID | MEM_ALLOC,
9066 PTR_TO_BTF_ID | MEM_ALLOC
9139 type &= ~MEM_ALLOC; in check_reg_type()
9224 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_type()
9225 case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: in check_reg_type()
9319 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
9322 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_func_arg_reg_off()
9323 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_func_arg_reg_off()
11371 if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { in check_helper_call()
11373 reg->type &= ~MEM_ALLOC; in check_helper_call()
11634 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; in check_helper_call()
11661 regs[BPF_REG_0].type |= MEM_ALLOC; in check_helper_call()
12558 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_allocation_locked()
13077 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13082 } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { in check_kfunc_args()
13163 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13167 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
13177 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13181 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
13190 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13213 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13351 if (reg->type != PTR_TO_MAP_VALUE && reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
13731 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
13741 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_kfunc_call()
20917 case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: in convert_ctx_accesses()