Home
last modified time | relevance | path

Searched refs:bpf_reg_state (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c50 const struct bpf_reg_state *reg2) in nfp_record_adjust_head()
85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok()
86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok()
125 const struct bpf_reg_state *reg, in nfp_bpf_stack_arg_ok()
159 u32 helper_tgt, const struct bpf_reg_state *reg1) in nfp_bpf_map_call_ok()
174 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_check_helper_call()
175 const struct bpf_reg_state *reg2 = cur_regs(env) + BPF_REG_2; in nfp_bpf_check_helper_call()
176 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_check_helper_call()
314 const struct bpf_reg_state *reg0 = cur_regs(env) + BPF_REG_0; in nfp_bpf_check_exit()
345 const struct bpf_reg_state *reg, in nfp_bpf_check_stack_access()
[all …]
Dmain.h250 struct bpf_reg_state reg;
305 struct bpf_reg_state ptr;
326 struct bpf_reg_state arg1;
/Linux-v6.6/include/linux/
Dbpf_verifier.h73 struct bpf_reg_state { struct
212 struct bpf_reg_state *parent; argument
252 struct bpf_reg_state spilled_ptr;
282 struct bpf_reg_state regs[MAX_BPF_REG];
405 struct bpf_reg_state *___regs; \
663 static inline struct bpf_reg_state *cur_regs(struct bpf_verifier_env *env) in cur_regs()
679 const struct bpf_reg_state *reg, int regno);
681 const struct bpf_reg_state *reg, int regno,
683 int check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg,
Dbpf.h917 struct bpf_reg_state;
939 const struct bpf_reg_state *reg,
2390 const struct bpf_reg_state *reg,
2404 struct bpf_reg_state;
2406 struct bpf_reg_state *regs);
2408 struct bpf_reg_state *regs);
2410 struct bpf_reg_state *reg);
2433 const struct bpf_reg_state *reg,
2647 const struct bpf_reg_state *reg, in btf_struct_access()
Dfilter.h582 const struct bpf_reg_state *reg,
/Linux-v6.6/kernel/bpf/
Dverifier.c199 struct bpf_reg_state *reg);
202 static bool is_trusted_reg(const struct bpf_reg_state *reg);
411 struct bpf_reg_state *reg, in verbose_invalid_scalar()
448 static bool reg_not_null(const struct bpf_reg_state *reg) in reg_not_null()
476 static struct btf_record *reg_btf_record(const struct bpf_reg_state *reg) in reg_btf_record()
498 static bool reg_may_point_to_spin_lock(const struct bpf_reg_state *reg) in reg_may_point_to_spin_lock()
674 const struct bpf_reg_state *reg) in func()
695 static int stack_slot_obj_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in stack_slot_obj_get_spi()
722 static int dynptr_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_get_spi()
727 static int iter_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) in iter_get_spi()
[all …]
Dbtf.c6386 const struct bpf_reg_state *reg, in btf_struct_access()
6763 struct bpf_reg_state *regs, in btf_check_func_arg_match()
6805 struct bpf_reg_state *reg = &regs[regno]; in btf_check_func_arg_match()
6871 struct bpf_reg_state *regs) in btf_check_subprog_arg_match()
6914 struct bpf_reg_state *regs) in btf_check_subprog_call()
6952 struct bpf_reg_state *regs) in btf_prepare_func_args()
7023 struct bpf_reg_state *reg = &regs[i + 1]; in btf_prepare_func_args()
8486 const struct bpf_reg_state *reg, in btf_nested_type_is_trusted()
/Linux-v6.6/net/bpf/
Dbpf_dummy_struct_ops.c175 const struct bpf_reg_state *reg, in bpf_dummy_ops_btf_struct_access()
/Linux-v6.6/net/ipv4/
Dbpf_tcp_ca.c72 const struct bpf_reg_state *reg, in bpf_tcp_ca_btf_struct_access()
/Linux-v6.6/Documentation/bpf/
Dverifier.rst115 This is done with ``struct bpf_reg_state``, defined in include/linux/
364 struct bpf_reg_state {
366 struct bpf_reg_state *parent;
373 struct bpf_reg_state spilled_ptr;
378 struct bpf_reg_state regs[MAX_BPF_REG];
491 mark_reg_read(struct bpf_reg_state *state, ...):
/Linux-v6.6/net/netfilter/
Dnf_conntrack_bpf.c195 const struct bpf_reg_state *reg, in BTF_ID()
/Linux-v6.6/net/core/
Dfilter.c8831 const struct bpf_reg_state *reg,
8836 const struct bpf_reg_state *reg, in tc_cls_act_btf_struct_access()
8909 const struct bpf_reg_state *reg, in xdp_btf_struct_access()