Home
last modified time | relevance | path

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

/kernel/bpf/
Dverifier.c3926 struct bpf_map_value_off_desc *off_desc, in map_kptr_match_type() argument
3929 const char *targ_name = kernel_type_name(off_desc->kptr.btf, off_desc->kptr.btf_id); in map_kptr_match_type()
3934 if (off_desc->type == BPF_KPTR_UNREF) in map_kptr_match_type()
3981 off_desc->kptr.btf, off_desc->kptr.btf_id, in map_kptr_match_type()
3982 off_desc->type == BPF_KPTR_REF)) in map_kptr_match_type()
3989 if (off_desc->type == BPF_KPTR_UNREF) in map_kptr_match_type()
3999 struct bpf_map_value_off_desc *off_desc) in check_map_kptr_access() argument
4020 if (class != BPF_LDX && off_desc->type == BPF_KPTR_REF) { in check_map_kptr_access()
4030 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, off_desc->kptr.btf, in check_map_kptr_access()
4031 off_desc->kptr.btf_id, PTR_MAYBE_NULL | PTR_UNTRUSTED); in check_map_kptr_access()
[all …]
Dbtf.c6391 struct bpf_map_value_off_desc *off_desc; in btf_check_func_arg_match() local
6407 off_desc = bpf_map_kptr_off_contains(reg->map_ptr, reg->off + reg->var_off.value); in btf_check_func_arg_match()
6408 if (!off_desc || off_desc->type != BPF_KPTR_REF) { in btf_check_func_arg_match()
6427 if (!btf_struct_ids_match(log, btf, ref_id, 0, off_desc->kptr.btf, in btf_check_func_arg_match()
6428 off_desc->kptr.btf_id, true)) { in btf_check_func_arg_match()
Dsyscall.c596 struct bpf_map_value_off_desc *off_desc = &tab->off[i]; in bpf_map_free_kptrs() local
599 btf_id_ptr = map_value + off_desc->offset; in bpf_map_free_kptrs()
600 if (off_desc->type == BPF_KPTR_UNREF) { in bpf_map_free_kptrs()
607 off_desc->kptr.dtor((void *)old_ptr); in bpf_map_free_kptrs()