Home
last modified time | relevance | path

Searched refs:MEM_ALLOC (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/include/linux/
H A Dbpf_verifier.h926 #define BPF_REG_TRUSTED_MODIFIERS (MEM_ALLOC | PTR_TRUSTED | NON_OWN_REF)
935 return base_type(type) == PTR_TO_BTF_ID && type_flag(type) & MEM_ALLOC; in type_is_ptr_alloc_obj()
H A Dbpf.h688 MEM_ALLOC = BIT(11 + BPF_BASE_TYPE_BITS), enumerator
3556 return type & MEM_ALLOC; in type_is_alloc()
/linux-6.15/kernel/bpf/
H A Dverifier.c2186 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()
9319 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
11373 reg->type &= ~MEM_ALLOC; in check_helper_call()
11661 regs[BPF_REG_0].type |= MEM_ALLOC; in check_helper_call()
[all …]
/linux-6.15/Documentation/bpf/
H A Dgraph_ds_impl.rst99 has type ``PTR_TO_BTF_ID | MEM_ALLOC``, with a ``btf_id`` of