Home
last modified time | relevance | path

Searched refs:off_desc (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/kernel/bpf/
Dverifier.c3686 struct bpf_map_value_off_desc *off_desc, in map_kptr_match_type() argument
3689 const char *targ_name = kernel_type_name(off_desc->kptr.btf, off_desc->kptr.btf_id); in map_kptr_match_type()
3694 if (off_desc->type == BPF_KPTR_UNREF) in map_kptr_match_type()
3741 off_desc->kptr.btf, off_desc->kptr.btf_id, in map_kptr_match_type()
3742 off_desc->type == BPF_KPTR_REF)) in map_kptr_match_type()
3749 if (off_desc->type == BPF_KPTR_UNREF) in map_kptr_match_type()
3759 struct bpf_map_value_off_desc *off_desc) in check_map_kptr_access() argument
3780 if (class != BPF_LDX && off_desc->type == BPF_KPTR_REF) { in check_map_kptr_access()
3790 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, off_desc->kptr.btf, in check_map_kptr_access()
3791 off_desc->kptr.btf_id, PTR_MAYBE_NULL | PTR_UNTRUSTED); in check_map_kptr_access()
[all …]
Dbtf.c6370 struct bpf_map_value_off_desc *off_desc; in btf_check_func_arg_match() local
6386 off_desc = bpf_map_kptr_off_contains(reg->map_ptr, reg->off + reg->var_off.value); in btf_check_func_arg_match()
6387 if (!off_desc || off_desc->type != BPF_KPTR_REF) { in btf_check_func_arg_match()
6406 if (!btf_struct_ids_match(log, btf, ref_id, 0, off_desc->kptr.btf, in btf_check_func_arg_match()
6407 off_desc->kptr.btf_id, true)) { in btf_check_func_arg_match()
Dsyscall.c594 struct bpf_map_value_off_desc *off_desc = &tab->off[i]; in bpf_map_free_kptrs() local
597 btf_id_ptr = map_value + off_desc->offset; in bpf_map_free_kptrs()
598 if (off_desc->type == BPF_KPTR_UNREF) { in bpf_map_free_kptrs()
605 off_desc->kptr.dtor((void *)old_ptr); in bpf_map_free_kptrs()