Lines Matching refs:bpf_verifier_env
194 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx);
195 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
196 static void invalidate_non_owning_refs(struct bpf_verifier_env *env);
197 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env);
198 static int ref_set_non_owning(struct bpf_verifier_env *env,
200 static void specialize_kfunc(struct bpf_verifier_env *env,
341 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo()
363 struct bpf_verifier_env *env = private_data; in verbose()
382 __printf(3, 4) static void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo()
410 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar()
491 static bool subprog_is_global(const struct bpf_verifier_env *env, int subprog) in subprog_is_global()
596 static const char *reg_type_str(struct bpf_verifier_env *env, in reg_type_str()
655 static void print_liveness(struct bpf_verifier_env *env, in print_liveness()
673 static struct bpf_func_state *func(struct bpf_verifier_env *env, 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()
780 static void mark_reg_scratched(struct bpf_verifier_env *env, u32 regno) in mark_reg_scratched()
785 static void mark_stack_slot_scratched(struct bpf_verifier_env *env, u32 spi) in mark_stack_slot_scratched()
790 static bool reg_scratched(const struct bpf_verifier_env *env, u32 regno) in reg_scratched()
795 static bool stack_slot_scratched(const struct bpf_verifier_env *env, u64 regno) in stack_slot_scratched()
800 static bool verifier_state_scratched(const struct bpf_verifier_env *env) in verifier_state_scratched()
805 static void mark_verifier_state_clean(struct bpf_verifier_env *env) in mark_verifier_state_clean()
812 static void mark_verifier_state_scratched(struct bpf_verifier_env *env) in mark_verifier_state_scratched()
859 static void __mark_reg_not_init(const struct bpf_verifier_env *env,
862 static void mark_dynptr_stack_regs(struct bpf_verifier_env *env, in mark_dynptr_stack_regs()
873 static void mark_dynptr_cb_reg(struct bpf_verifier_env *env, in mark_dynptr_cb_reg()
880 static int destroy_if_dynptr_stack_slot(struct bpf_verifier_env *env,
883 static int mark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in mark_stack_slots_dynptr()
944 static void invalidate_dynptr(struct bpf_verifier_env *env, struct bpf_func_state *state, int spi) in invalidate_dynptr()
981 static int unmark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in unmark_stack_slots_dynptr()
1027 static void __mark_reg_unknown(const struct bpf_verifier_env *env,
1030 static void mark_reg_invalid(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) in mark_reg_invalid()
1038 static int destroy_if_dynptr_stack_slot(struct bpf_verifier_env *env, in destroy_if_dynptr_stack_slot()
1094 static bool is_dynptr_reg_valid_uninit(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in is_dynptr_reg_valid_uninit()
1122 static bool is_dynptr_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in is_dynptr_reg_valid_init()
1151 static bool is_dynptr_type_expected(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in is_dynptr_type_expected()
1175 static int mark_stack_slots_iter(struct bpf_verifier_env *env, in mark_stack_slots_iter()
1212 static int unmark_stack_slots_iter(struct bpf_verifier_env *env, in unmark_stack_slots_iter()
1243 static bool is_iter_reg_valid_uninit(struct bpf_verifier_env *env, in is_iter_reg_valid_uninit()
1270 static bool is_iter_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in is_iter_reg_valid_init()
1344 static void print_verifier_state(struct bpf_verifier_env *env, in print_verifier_state()
1527 static void print_insn_state(struct bpf_verifier_env *env, in print_insn_state()
1654 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) in acquire_reference_state()
1780 static void update_branch_counts(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in update_branch_counts()
1797 static int pop_stack(struct bpf_verifier_env *env, int *prev_insn_idx, in pop_stack()
1826 static struct bpf_verifier_state *push_stack(struct bpf_verifier_env *env, in push_stack()
1930 static void mark_reg_known_zero(struct bpf_verifier_env *env, in mark_reg_known_zero()
2263 static void __mark_reg_unknown(const struct bpf_verifier_env *env, in __mark_reg_unknown()
2280 static void mark_reg_unknown(struct bpf_verifier_env *env, in mark_reg_unknown()
2293 static void __mark_reg_not_init(const struct bpf_verifier_env *env, in __mark_reg_not_init()
2300 static void mark_reg_not_init(struct bpf_verifier_env *env, in mark_reg_not_init()
2313 static void mark_btf_ld_reg(struct bpf_verifier_env *env, in mark_btf_ld_reg()
2330 static void init_reg_state(struct bpf_verifier_env *env, in init_reg_state()
2350 static void init_func_state(struct bpf_verifier_env *env, in init_func_state()
2363 static struct bpf_verifier_state *push_async_cb(struct bpf_verifier_env *env, in push_async_cb()
2422 static int find_subprog(struct bpf_verifier_env *env, int off) in find_subprog()
2434 static int add_subprog(struct bpf_verifier_env *env, int off) in add_subprog()
2533 static struct btf *__find_kfunc_desc_btf(struct bpf_verifier_env *env, in __find_kfunc_desc_btf()
2603 static struct btf *find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset) in find_kfunc_desc_btf()
2619 static int add_kfunc_call(struct bpf_verifier_env *env, u32 func_id, s16 offset) in add_kfunc_call()
2793 static int add_subprog_and_kfunc(struct bpf_verifier_env *env) in add_subprog_and_kfunc()
2835 static int check_subprogs(struct bpf_verifier_env *env) in check_subprogs()
2891 static int mark_reg_read(struct bpf_verifier_env *env, in mark_reg_read()
2939 static int mark_dynptr_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in mark_dynptr_read()
2965 static int mark_iter_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in mark_iter_read()
2988 static bool is_reg64(struct bpf_verifier_env *env, struct bpf_insn *insn, in is_reg64()
3098 static bool insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) in insn_has_def32()
3108 static void mark_insn_zext(struct bpf_verifier_env *env, in mark_insn_zext()
3121 static int check_reg_arg(struct bpf_verifier_env *env, u32 regno, in check_reg_arg()
3168 static void mark_jmp_point(struct bpf_verifier_env *env, int idx) in mark_jmp_point()
3173 static bool is_jmp_point(struct bpf_verifier_env *env, int insn_idx) in is_jmp_point()
3179 static int push_jmp_history(struct bpf_verifier_env *env, in push_jmp_history()
3241 struct bpf_verifier_env *env = bt->env; in bt_reset()
3398 static int backtrack_insn(struct bpf_verifier_env *env, int idx, int subseq_idx, in backtrack_insn()
3718 static void mark_all_scalars_precise(struct bpf_verifier_env *env, in mark_all_scalars_precise()
3765 static void mark_all_scalars_imprecise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in mark_all_scalars_imprecise()
3817 static int mark_precise_scalar_ids(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in mark_precise_scalar_ids()
3967 static int __mark_chain_precision(struct bpf_verifier_env *env, int regno) in __mark_chain_precision()
4181 int mark_chain_precision(struct bpf_verifier_env *env, int regno) in mark_chain_precision()
4189 static int mark_chain_precision_batch(struct bpf_verifier_env *env) in mark_chain_precision_batch()
4291 static int check_stack_write_fixed_off(struct bpf_verifier_env *env, in check_stack_write_fixed_off()
4434 static int check_stack_write_var_off(struct bpf_verifier_env *env, in check_stack_write_var_off()
4542 static void mark_reg_stack_read(struct bpf_verifier_env *env, in mark_reg_stack_read()
4594 static int check_stack_read_fixed_off(struct bpf_verifier_env *env, in check_stack_read_fixed_off()
4699 static int check_stack_range_initialized(struct bpf_verifier_env *env,
4705 static struct bpf_reg_state *reg_state(struct bpf_verifier_env *env, int regno) in reg_state()
4723 static int check_stack_read_var_off(struct bpf_verifier_env *env, in check_stack_read_var_off()
4754 static int check_stack_read(struct bpf_verifier_env *env, in check_stack_read()
4811 static int check_stack_write(struct bpf_verifier_env *env, in check_stack_write()
4834 static int check_map_access_type(struct bpf_verifier_env *env, u32 regno, in check_map_access_type()
4857 static int __check_mem_access(struct bpf_verifier_env *env, int regno, in __check_mem_access()
4893 static int check_mem_region_access(struct bpf_verifier_env *env, u32 regno, in check_mem_region_access()
4948 static int __check_ptr_off_reg(struct bpf_verifier_env *env, in __check_ptr_off_reg()
4980 int check_ptr_off_reg(struct bpf_verifier_env *env, in check_ptr_off_reg()
4986 static int map_kptr_match_type(struct bpf_verifier_env *env, in map_kptr_match_type()
5063 static bool in_rcu_cs(struct bpf_verifier_env *env) in in_rcu_cs()
5092 static int check_map_kptr_access(struct bpf_verifier_env *env, u32 regno, in check_map_kptr_access()
5151 static int check_map_access(struct bpf_verifier_env *env, u32 regno, in check_map_access()
5213 static bool may_access_direct_pkt_data(struct bpf_verifier_env *env, in may_access_direct_pkt_data()
5255 static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, in check_packet_access()
5298 static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, in check_ctx_access()
5334 static int check_flow_keys_access(struct bpf_verifier_env *env, int off, in check_flow_keys_access()
5346 static int check_sock_access(struct bpf_verifier_env *env, int insn_idx, in check_sock_access()
5391 static bool is_pointer_value(struct bpf_verifier_env *env, int regno) in is_pointer_value()
5396 static bool is_ctx_reg(struct bpf_verifier_env *env, int regno) in is_ctx_reg()
5403 static bool is_sk_reg(struct bpf_verifier_env *env, int regno) in is_sk_reg()
5410 static bool is_pkt_reg(struct bpf_verifier_env *env, int regno) in is_pkt_reg()
5417 static bool is_flow_key_reg(struct bpf_verifier_env *env, int regno) in is_flow_key_reg()
5467 static int check_pkt_ptr_alignment(struct bpf_verifier_env *env, in check_pkt_ptr_alignment()
5502 static int check_generic_ptr_alignment(struct bpf_verifier_env *env, in check_generic_ptr_alignment()
5526 static int check_ptr_alignment(struct bpf_verifier_env *env, in check_ptr_alignment()
5579 static int update_stack_depth(struct bpf_verifier_env *env, in update_stack_depth()
5599 static int check_max_stack_depth_subprog(struct bpf_verifier_env *env, int idx) in check_max_stack_depth_subprog()
5710 static int check_max_stack_depth(struct bpf_verifier_env *env) in check_max_stack_depth()
5727 static int get_callee_stack_depth(struct bpf_verifier_env *env, in get_callee_stack_depth()
5742 static int __check_buffer_access(struct bpf_verifier_env *env, in __check_buffer_access()
5766 static int check_tp_buffer_access(struct bpf_verifier_env *env, in check_tp_buffer_access()
5782 static int check_buffer_access(struct bpf_verifier_env *env, in check_buffer_access()
6101 static bool type_is_rcu(struct bpf_verifier_env *env, in type_is_rcu()
6112 static bool type_is_rcu_or_null(struct bpf_verifier_env *env, in type_is_rcu_or_null()
6123 static bool type_is_trusted(struct bpf_verifier_env *env, in type_is_trusted()
6137 static int check_ptr_to_btf_access(struct bpf_verifier_env *env, in check_ptr_to_btf_access()
6285 static int check_ptr_to_map_access(struct bpf_verifier_env *env, in check_ptr_to_map_access()
6373 struct bpf_verifier_env *env, in check_stack_access_within_bounds()
6437 static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, in check_mem_access()
6679 static int check_atomic(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) in check_atomic()
6793 struct bpf_verifier_env *env, int regno, int off, in check_stack_range_initialized()
6946 static int check_helper_mem_access(struct bpf_verifier_env *env, int regno, in check_helper_mem_access()
7039 static int check_mem_size_reg(struct bpf_verifier_env *env, in check_mem_size_reg()
7094 int check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in check_mem_reg()
7126 static int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in check_kfunc_mem_size_reg()
7176 static int process_spin_lock(struct bpf_verifier_env *env, int regno, in process_spin_lock()
7253 static int process_timer_func(struct bpf_verifier_env *env, int regno, in process_timer_func()
7290 static int process_kptr_func(struct bpf_verifier_env *env, int regno, in process_kptr_func()
7354 static int process_dynptr_func(struct bpf_verifier_env *env, int regno, int insn_idx, in process_dynptr_func()
7427 static u32 iter_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int spi) in iter_ref_obj_id()
7462 static int process_iter_arg(struct bpf_verifier_env *env, int regno, int insn_idx, in process_iter_arg()
7582 static int process_iter_next_call(struct bpf_verifier_env *env, int insn_idx, in process_iter_next_call()
7650 static int resolve_map_arg_type(struct bpf_verifier_env *env, in resolve_map_arg_type()
7797 static int check_reg_type(struct bpf_verifier_env *env, u32 regno, in check_reg_type()
7954 int check_func_arg_reg_off(struct bpf_verifier_env *env, in check_func_arg_reg_off()
8024 static struct bpf_reg_state *get_dynptr_arg_reg(struct bpf_verifier_env *env, in get_dynptr_arg_reg()
8046 static int dynptr_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_id()
8059 static int dynptr_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_ref_obj_id()
8072 static enum bpf_dynptr_type dynptr_get_type(struct bpf_verifier_env *env, in dynptr_get_type()
8090 static int check_func_arg(struct bpf_verifier_env *env, u32 arg, in check_func_arg()
8384 static bool may_update_sockmap(struct bpf_verifier_env *env, int func_id) in may_update_sockmap()
8416 static bool allow_tail_call_in_subprogs(struct bpf_verifier_env *env) in allow_tail_call_in_subprogs()
8422 static int check_map_func_compatibility(struct bpf_verifier_env *env, in check_map_func_compatibility()
8762 static void clear_all_pkt_pointers(struct bpf_verifier_env *env) in clear_all_pkt_pointers()
8802 static int release_reference(struct bpf_verifier_env *env, in release_reference()
8821 static void invalidate_non_owning_refs(struct bpf_verifier_env *env) in invalidate_non_owning_refs()
8832 static void clear_caller_saved_regs(struct bpf_verifier_env *env, in clear_caller_saved_regs()
8844 typedef int (*set_callee_state_fn)(struct bpf_verifier_env *env,
8849 static int set_callee_state(struct bpf_verifier_env *env,
8853 static int __check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in __check_func_call()
8988 int map_set_for_each_callback_args(struct bpf_verifier_env *env, in map_set_for_each_callback_args()
9015 static int set_callee_state(struct bpf_verifier_env *env, in set_callee_state()
9029 static int check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_func_call()
9045 static int set_map_elem_callback_state(struct bpf_verifier_env *env, in set_map_elem_callback_state()
9075 static int set_loop_callback_state(struct bpf_verifier_env *env, in set_loop_callback_state()
9097 static int set_timer_callback_state(struct bpf_verifier_env *env, in set_timer_callback_state()
9127 static int set_find_vma_callback_state(struct bpf_verifier_env *env, in set_find_vma_callback_state()
9155 static int set_user_ringbuf_callback_state(struct bpf_verifier_env *env, in set_user_ringbuf_callback_state()
9178 static int set_rbtree_add_callback_state(struct bpf_verifier_env *env, in set_rbtree_add_callback_state()
9216 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env) in in_rbtree_lock_required_cb()
9235 static int prepare_func_exit(struct bpf_verifier_env *env, int *insn_idx) in prepare_func_exit()
9334 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, in record_func_map()
9380 record_func_key(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, in record_func_key()
9416 static int check_reference_leak(struct bpf_verifier_env *env) in check_reference_leak()
9435 static int check_bpf_snprintf_call(struct bpf_verifier_env *env, in check_bpf_snprintf_call()
9473 static int check_get_func_ip(struct bpf_verifier_env *env) in check_get_func_ip()
9494 static struct bpf_insn_aux_data *cur_aux(struct bpf_verifier_env *env) in cur_aux()
9499 static bool loop_flag_is_zero(struct bpf_verifier_env *env) in loop_flag_is_zero()
9511 static void update_loop_inline_state(struct bpf_verifier_env *env, u32 subprogno) in update_loop_inline_state()
9529 static int check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_helper_call()
9980 static void mark_btf_func_reg_size(struct bpf_verifier_env *env, u32 regno, in mark_btf_func_reg_size()
10181 static bool is_kfunc_arg_callback(struct bpf_verifier_env *env, const struct btf *btf, in is_kfunc_arg_callback()
10194 static bool __btf_type_is_scalar_struct(struct bpf_verifier_env *env, in __btf_type_is_scalar_struct()
10333 get_kfunc_ptr_arg_type(struct bpf_verifier_env *env, in get_kfunc_ptr_arg_type()
10411 static int process_kf_arg_ptr_to_btf_id(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_btf_id()
10474 static int ref_set_non_owning(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in ref_set_non_owning()
10496 static int ref_convert_owning_non_owning(struct bpf_verifier_env *env, u32 ref_obj_id) in ref_convert_owning_non_owning()
10574 static int check_reg_allocation_locked(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in check_reg_allocation_locked()
10633 static bool check_kfunc_is_graph_root_api(struct bpf_verifier_env *env, in check_kfunc_is_graph_root_api()
10658 static bool check_kfunc_is_graph_node_api(struct bpf_verifier_env *env, in check_kfunc_is_graph_node_api()
10686 __process_kf_arg_ptr_to_graph_root(struct bpf_verifier_env *env, in __process_kf_arg_ptr_to_graph_root()
10736 static int process_kf_arg_ptr_to_list_head(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_list_head()
10744 static int process_kf_arg_ptr_to_rbtree_root(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_rbtree_root()
10753 __process_kf_arg_ptr_to_graph_node(struct bpf_verifier_env *env, in __process_kf_arg_ptr_to_graph_node()
10817 static int process_kf_arg_ptr_to_list_node(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_list_node()
10826 static int process_kf_arg_ptr_to_rbtree_node(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_rbtree_node()
10835 static int check_kfunc_args(struct bpf_verifier_env *env, struct bpf_kfunc_call_arg_meta *meta, in check_kfunc_args()
11241 static int fetch_kfunc_meta(struct bpf_verifier_env *env, in fetch_kfunc_meta()
11283 static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_kfunc_call()
11668 static bool check_reg_sane_offset(struct bpf_verifier_env *env, in check_reg_sane_offset()
11742 static bool can_skip_alu_sanitation(const struct bpf_verifier_env *env, in can_skip_alu_sanitation()
11765 static int sanitize_val_alu(struct bpf_verifier_env *env, in sanitize_val_alu()
11787 sanitize_speculative_path(struct bpf_verifier_env *env, in sanitize_speculative_path()
11807 static int sanitize_ptr_alu(struct bpf_verifier_env *env, in sanitize_ptr_alu()
11903 static void sanitize_mark_insn_seen(struct bpf_verifier_env *env) in sanitize_mark_insn_seen()
11916 static int sanitize_err(struct bpf_verifier_env *env, in sanitize_err()
11966 struct bpf_verifier_env *env, in check_stack_access_for_ptr_arithmetic()
11989 static int sanitize_check_bounds(struct bpf_verifier_env *env, in sanitize_check_bounds()
12026 static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, in adjust_ptr_min_max_vals()
12823 static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, in adjust_scalar_min_max_vals()
12984 static int adjust_reg_min_max_vals(struct bpf_verifier_env *env, in adjust_reg_min_max_vals()
13070 static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_alu_op()
14032 static int check_cond_jmp_op(struct bpf_verifier_env *env, in check_cond_jmp_op()
14276 static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_imm()
14395 static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_abs()
14477 static int check_return_code(struct bpf_verifier_env *env) in check_return_code()
14682 static u32 state_htab_size(struct bpf_verifier_env *env) in state_htab_size()
14688 struct bpf_verifier_env *env, in explored_state()
14697 static void mark_prune_point(struct bpf_verifier_env *env, int idx) in mark_prune_point()
14702 static bool is_prune_point(struct bpf_verifier_env *env, int insn_idx) in is_prune_point()
14707 static void mark_force_checkpoint(struct bpf_verifier_env *env, int idx) in mark_force_checkpoint()
14712 static bool is_force_checkpoint(struct bpf_verifier_env *env, int insn_idx) in is_force_checkpoint()
14728 static int push_insn(int t, int w, int e, struct bpf_verifier_env *env, in push_insn()
14778 struct bpf_verifier_env *env, in visit_func_call_insn()
14808 static int visit_insn(int t, struct bpf_verifier_env *env) in visit_insn()
14890 static int check_cfg(struct bpf_verifier_env *env) in check_cfg()
14953 static int check_abnormal_return(struct bpf_verifier_env *env) in check_abnormal_return()
14974 static int check_btf_func(struct bpf_verifier_env *env, in check_btf_func()
15105 static void adjust_btf_func(struct bpf_verifier_env *env) in adjust_btf_func()
15120 static int check_btf_line(struct bpf_verifier_env *env, in check_btf_line()
15248 static int check_core_relo(struct bpf_verifier_env *env, in check_core_relo()
15317 static int check_btf_info(struct bpf_verifier_env *env, in check_btf_info()
15419 static void clean_func_state(struct bpf_verifier_env *env, in clean_func_state()
15448 static void clean_verifier_state(struct bpf_verifier_env *env, in clean_verifier_state()
15493 static void clean_live_states(struct bpf_verifier_env *env, int insn, in clean_live_states()
15525 static bool regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, in regsafe()
15643 static bool stacksafe(struct bpf_verifier_env *env, struct bpf_func_state *old, in stacksafe()
15788 static bool func_states_equal(struct bpf_verifier_env *env, struct bpf_func_state *old, in func_states_equal()
15807 static bool states_equal(struct bpf_verifier_env *env, in states_equal()
15856 static int propagate_liveness_reg(struct bpf_verifier_env *env, in propagate_liveness_reg()
15889 static int propagate_liveness(struct bpf_verifier_env *env, in propagate_liveness()
15936 static int propagate_precision(struct bpf_verifier_env *env, in propagate_precision()
16010 static bool is_iter_next_insn(struct bpf_verifier_env *env, int insn_idx) in is_iter_next_insn()
16097 static int is_state_visited(struct bpf_verifier_env *env, int insn_idx) in is_state_visited()
16392 static int save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type type, in save_aux_ptr_type()
16430 static int do_check(struct bpf_verifier_env *env) in do_check()
16804 static int check_pseudo_btf_id(struct bpf_verifier_env *env, in check_pseudo_btf_id()
16953 static int check_map_prog_compatibility(struct bpf_verifier_env *env, in check_map_prog_compatibility()
17037 static int resolve_pseudo_ldimm64(struct bpf_verifier_env *env) in resolve_pseudo_ldimm64()
17222 static void release_maps(struct bpf_verifier_env *env) in release_maps()
17229 static void release_btfs(struct bpf_verifier_env *env) in release_btfs()
17236 static void convert_pseudo_ld_imm64(struct bpf_verifier_env *env) in convert_pseudo_ld_imm64()
17255 static void adjust_insn_aux_data(struct bpf_verifier_env *env, in adjust_insn_aux_data()
17287 static void adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) in adjust_subprog_starts()
17315 static struct bpf_prog *bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, in bpf_patch_insn_data()
17343 static int adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, in adjust_subprog_starts_after_remove()
17399 static int bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, in bpf_adj_linfo_after_remove()
17463 static int verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) in verifier_remove_insns()
17501 static void sanitize_dead_code(struct bpf_verifier_env *env) in sanitize_dead_code()
17531 static void opt_hard_wire_dead_code_branches(struct bpf_verifier_env *env) in opt_hard_wire_dead_code_branches()
17557 static int opt_remove_dead_code(struct bpf_verifier_env *env) in opt_remove_dead_code()
17581 static int opt_remove_nops(struct bpf_verifier_env *env) in opt_remove_nops()
17602 static int opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, in opt_subreg_zext_lo32_rnd_hi32()
17706 static int convert_ctx_accesses(struct bpf_verifier_env *env) in convert_ctx_accesses()
17905 static int jit_subprogs(struct bpf_verifier_env *env) in jit_subprogs()
18137 static int fixup_call_args(struct bpf_verifier_env *env) in fixup_call_args()
18189 static void specialize_kfunc(struct bpf_verifier_env *env, in specialize_kfunc()
18240 static int fixup_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in fixup_kfunc_call()
18325 static int do_misc_fixups(struct bpf_verifier_env *env) in do_misc_fixups()
18852 static struct bpf_prog *inline_bpf_loop(struct bpf_verifier_env *env, in inline_bpf_loop()
18943 static int optimize_bpf_loop(struct bpf_verifier_env *env) in optimize_bpf_loop()
18988 static void free_states(struct bpf_verifier_env *env) in free_states()
19018 static int do_check_common(struct bpf_verifier_env *env, int subprog) in do_check_common()
19116 static int do_check_subprogs(struct bpf_verifier_env *env) in do_check_subprogs()
19141 static int do_check_main(struct bpf_verifier_env *env) in do_check_main()
19153 static void print_verification_stats(struct bpf_verifier_env *env) in print_verification_stats()
19177 static int check_struct_ops_btf_id(struct bpf_verifier_env *env) in check_struct_ops_btf_id()
19567 static int check_attach_btf_id(struct bpf_verifier_env *env) in check_attach_btf_id()
19662 struct bpf_verifier_env *env; in bpf_check()
19674 env = kzalloc(sizeof(struct bpf_verifier_env), GFP_KERNEL); in bpf_check()