Searched refs:PTR_TO_BTF_ID (Results 1 – 12 of 12) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | verifier.c | 370 (type == PTR_TO_BTF_ID && is_trusted_reg(env, reg)) || in reg_not_null() 1951 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node() 2252 case PTR_TO_BTF_ID: in mark_btf_ld_reg() 2254 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg() 4489 if (base_type(reg->type) != PTR_TO_BTF_ID) in map_kptr_match_type() 4559 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type() 4561 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type() 4713 ret = mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, in check_map_kptr_access() 4906 if (base_type(info->reg_type) == PTR_TO_BTF_ID) { in __check_ctx_access() 6082 if (ret != PTR_TO_BTF_ID) { in check_ptr_to_btf_access() [all …]
|
| H A D | log.c | 418 [PTR_TO_BTF_ID] = "ptr_", in reg_type_str() 429 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str() 650 if (base_type(t) == PTR_TO_BTF_ID) in print_reg_state()
|
| H A D | bpf_struct_ops.c | 299 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID | PTR_MAYBE_NULL; in prepare_arg_info() 301 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID; in prepare_arg_info()
|
| H A D | diagnostics.c | 948 case PTR_TO_BTF_ID: in bpf_diag_reg_type_plain() 1447 if (base_type(reg->type) == PTR_TO_BTF_ID && reg->btf && reg->btf_id) { in diag_snapshot_reg() 2158 if (base_type(snapshot->type) == PTR_TO_BTF_ID && btf) in diag_reg_snapshot()
|
| H A D | btf.c | 7027 info->reg_type = PTR_TO_BTF_ID; in btf_ctx_access() 7445 return PTR_TO_BTF_ID; in btf_struct_access()
|
| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 52 if (base_type(info->reg_type) == PTR_TO_BTF_ID && in bpf_tcp_ca_is_valid_access()
|
| /linux/net/netfilter/ |
| H A D | nf_bpf_link.c | 288 info->reg_type = PTR_TO_BTF_ID | PTR_TRUSTED; in nf_ptr_to_btf_id()
|
| /linux/include/linux/ |
| H A D | bpf_verifier.h | 1327 case PTR_TO_BTF_ID: in bpf_is_ptr_to_mem_or_btf_id() 1341 return type == PTR_TO_BTF_ID || (type_flag(type) & PTR_UNTRUSTED); in bpf_may_fault_on_deref() 1384 return base_type(type) == PTR_TO_BTF_ID && in type_is_ptr_alloc_obj()
|
| H A D | bpf.h | 1076 PTR_TO_BTF_ID, enumerator 1094 PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | PTR_TO_BTF_ID,
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 44 info->reg_type = PTR_TO_BTF_ID | PTR_TRUSTED; in BTF_ID_LIST_SINGLE()
|
| /linux/Documentation/bpf/ |
| H A D | graph_ds_impl.rst | 99 has type ``PTR_TO_BTF_ID | MEM_ALLOC``, with a ``btf_id`` of
|
| H A D | kfuncs.rst | 271 at run time. The argument may take either a map fd or a ``PTR_TO_BTF_ID`` 559 PTR_TO_BTF_ID type matching if two types have the exact same name, with one
|