Home
last modified time | relevance | path

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

/linux/kernel/bpf/
H A Ddiagnostics.h14 struct bpf_reg_state;
61 const char *reg_name, const struct bpf_reg_state *reg,
71 int off, int size, u32 mem_size, const struct bpf_reg_state *reg);
98 void bpf_diag_mod_begin(struct bpf_verifier_env *env, const struct bpf_reg_state *reg,
99 const struct bpf_reg_state *origin, enum bpf_diag_mod_reason reason);
101 void bpf_diag_record_scrub(struct bpf_verifier_env *env, const struct bpf_reg_state *reg,
H A Dverifier.c216 struct bpf_reg_state *reg);
217 static bool is_trusted_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg);
220 static void scalar32_min_max_add(struct bpf_reg_state *dst_reg, struct bpf_reg_state *src_reg);
221 static void scalar_min_max_add(struct bpf_reg_state *dst_reg, struct bpf_reg_state *src_reg);
241 static void update_ref_obj(struct ref_obj_desc *ref_obj, struct bpf_reg_state *reg) in update_ref_obj()
327 struct bpf_reg_state *reg, in verbose_invalid_scalar()
347 static bool reg_not_null(struct bpf_verifier_env *env, const struct bpf_reg_state *reg) in reg_not_null()
366 static struct btf_record *reg_btf_record(const struct bpf_reg_state *reg) in reg_btf_record()
436 static bool reg_may_point_to_spin_lock(const struct bpf_reg_state *reg) in reg_may_point_to_spin_lock()
550 static int stack_slot_obj_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in stack_slot_obj_get_spi()
[all …]
H A Dstates.c302 static bool range_within(const struct bpf_reg_state *old, in range_within()
303 const struct bpf_reg_state *cur) in range_within()
445 struct bpf_reg_state *spill = &st->stack[i].spilled_ptr; in __clean_func_state()
491 static bool regs_exact(const struct bpf_reg_state *rold, in regs_exact()
492 const struct bpf_reg_state *rcur, in regs_exact()
495 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, id)) == 0 && in regs_exact()
507 static bool regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, in regsafe()
508 struct bpf_reg_state *rcur, struct bpf_idmap *idmap, in regsafe()
548 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, id)) == 0 && in regsafe()
618 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, var_off)) == 0 && in regsafe()
[all …]
H A Ddiagnostics.c208 struct bpf_reg_state target_reg_snapshot;
1233 const char *reg_name, const struct bpf_reg_state *reg, in bpf_diag_invalid_deref()
1442 const struct bpf_reg_state *reg) in diag_snapshot_reg()
1515 const struct bpf_reg_state *old_reg, in diag_record_mod()
1516 const struct bpf_reg_state *new_reg, in diag_record_mod()
1548 static struct bpf_reg_state *target_to_reg(struct bpf_verifier_env *env, in target_to_reg()
1579 static bool reg_to_target(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, in reg_to_target()
1620 void bpf_diag_mod_begin(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, in bpf_diag_mod_begin()
1621 const struct bpf_reg_state *origin, enum bpf_diag_mod_reason reason) in bpf_diag_mod_begin()
1639 const struct bpf_reg_state *new_reg; in bpf_diag_mod_end()
[all …]
H A Dlog.c554 const struct bpf_reg_state *reg, in print_scalar_ranges()
626 const struct bpf_reg_state *reg) in print_reg_state()
704 const struct bpf_reg_state *reg; in print_verifier_state()
H A Dbacktrack.c659 struct bpf_reg_state *reg; in bpf_mark_all_scalars_precise()
801 struct bpf_reg_state *reg; in bpf_mark_chain_precision()
H A Dbtf.c7373 const struct bpf_reg_state *reg, in btf_struct_access()
9788 const struct bpf_reg_state *reg, in btf_nested_type_is_trusted()
/linux/include/linux/
H A Dbpf_verifier.h38 struct bpf_reg_state { struct
169 static inline s64 reg_smin(const struct bpf_reg_state *reg) in reg_smin() argument
174 static inline s64 reg_smax(const struct bpf_reg_state *reg) in reg_smax()
179 static inline u64 reg_umin(const struct bpf_reg_state *reg) in reg_umin()
184 static inline u64 reg_umax(const struct bpf_reg_state *reg) in reg_umax()
189 static inline s32 reg_s32_min(const struct bpf_reg_state *reg) in reg_s32_min()
194 static inline s32 reg_s32_max(const struct bpf_reg_state *reg) in reg_s32_max()
199 static inline u32 reg_u32_min(const struct bpf_reg_state *reg) in reg_u32_min()
204 static inline u32 reg_u32_max(const struct bpf_reg_state *reg) in reg_u32_max()
209 static inline void reg_set_srange32(struct bpf_reg_state *reg, s32 smin, s32 smax) in reg_set_srange32()
[all …]
H A Dbpf.h1141 struct bpf_reg_state;
1165 const struct bpf_reg_state *reg,
3148 const struct bpf_reg_state *reg,
3162 struct bpf_reg_state;
3190 const struct bpf_reg_state *reg,
3498 const struct bpf_reg_state *reg, in btf_struct_access()
H A Dfilter.h748 const struct bpf_reg_state *reg,
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h250 struct bpf_reg_state reg;
305 struct bpf_reg_state ptr;
326 struct bpf_reg_state arg1;
/linux/net/sched/
H A Dbpf_qdisc.c55 const struct bpf_reg_state *reg, in bpf_qdisc_qdisc_access()
76 const struct bpf_reg_state *reg, in bpf_qdisc_sk_buff_access()
97 const struct bpf_reg_state *reg, in bpf_qdisc_btf_struct_access()
/linux/io_uring/
H A Dbpf-ops.c90 const struct bpf_reg_state *reg, int off, in bpf_io_btf_struct_access()
/linux/drivers/hid/bpf/
H A Dhid_bpf_struct_ops.c66 const struct bpf_reg_state *reg, in hid_bpf_ops_btf_struct_access()
/linux/net/ipv4/
H A Dbpf_tcp_ca.c62 const struct bpf_reg_state *reg, in bpf_tcp_ca_btf_struct_access()
/linux/net/netfilter/
H A Dnf_conntrack_bpf.c269 const struct bpf_reg_state *reg, in BTF_ID()
/linux/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod.c1901 const struct bpf_reg_state *reg, in st_ops_btf_struct_access()
/linux/kernel/sched/ext/
H A Dext.c7948 static int bpf_scx_btf_struct_access_common(const struct bpf_reg_state *reg, in bpf_scx_btf_struct_access_common()
7963 const struct bpf_reg_state *reg, int off, in bpf_scx_btf_struct_access()
7982 const struct bpf_reg_state *reg, int off, in bpf_scx_cid_btf_struct_access()
/linux/net/core/
H A Dfilter.c9482 const struct bpf_reg_state *reg,
9487 const struct bpf_reg_state *reg, in tc_cls_act_btf_struct_access()
9569 const struct bpf_reg_state *reg, in xdp_btf_struct_access()