Lines Matching defs:bpf_verifier_env
701 struct bpf_verifier_env { struct
702 u32 insn_idx;
703 u32 prev_insn_idx;
704 struct bpf_prog *prog; /* eBPF program being verified */
705 const struct bpf_verifier_ops *ops;
706 struct module *attach_btf_mod; /* The owner module of prog->aux->attach_btf */
707 struct bpf_verifier_stack_elem *head; /* stack of verifier states to be processed */
708 int stack_size; /* number of states to be processed */
709 bool strict_alignment; /* perform strict pointer alignment checks */
710 bool test_state_freq; /* test verifier with different pruning frequency */
711 bool test_reg_invariants; /* fail verification on register invariants violations */
712 struct bpf_verifier_state *cur_state; /* current verifier state */
713 struct bpf_verifier_state_list **explored_states; /* search pruning optimization */
714 struct bpf_verifier_state_list *free_list;
715 struct bpf_map *used_maps[MAX_USED_MAPS]; /* array of map's used by eBPF program */
716 struct btf_mod_pair used_btfs[MAX_USED_BTFS]; /* array of BTF's used by BPF program */
717 u32 used_map_cnt; /* number of used maps */
718 u32 used_btf_cnt; /* number of used BTF objects */
719 u32 id_gen; /* used to generate unique reg IDs */
720 u32 hidden_subprog_cnt; /* number of hidden subprogs */
721 int exception_callback_subprog;
722 bool explore_alu_limits;
723 bool allow_ptr_leaks;
728 bool allow_uninit_stack;
729 bool bpf_capable;
730 bool bypass_spec_v1;
731 bool bypass_spec_v4;
732 bool seen_direct_write;
733 bool seen_exception;
734 struct bpf_insn_aux_data *insn_aux_data; /* array of per-insn state */
735 const struct bpf_line_info *prev_linfo;
736 struct bpf_verifier_log log;
737 …_subprog_info subprog_info[BPF_MAX_SUBPROGS + 2]; /* max + 2 for the fake and exception subprogs */
738 union {
742 struct {
746 } cfg;
747 struct backtrack_state bt;
748 struct bpf_insn_hist_entry *insn_hist;
749 struct bpf_insn_hist_entry *cur_hist_ent;
750 u32 insn_hist_cap;
751 u32 pass_cnt; /* number of times do_check() was called */
752 u32 subprog_cnt;
754 u32 prev_insn_processed, insn_processed;
756 u32 prev_jmps_processed, jmps_processed;
758 u64 verification_time;
760 u32 max_states_per_insn;
762 u32 total_states;
789 static inline struct bpf_func_info_aux *subprog_aux(struct bpf_verifier_env *env, int subprog) in subprog_aux() argument