Lines Matching defs:env
354 struct bpf_verifier_env *env = private_data; in verbose() local
365 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar()
424 static bool subprog_is_global(const struct bpf_verifier_env *env, int subprog) in subprog_is_global()
431 static const char *subprog_name(const struct bpf_verifier_env *env, int subprog) in subprog_name()
442 static void mark_subprog_exc_cb(struct bpf_verifier_env *env, int subprog) in mark_subprog_exc_cb()
451 static bool subprog_is_exc_cb(struct bpf_verifier_env *env, int subprog) in subprog_is_exc_cb()
566 static struct bpf_func_state *func(struct bpf_verifier_env *env, in func()
588 static int stack_slot_obj_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in stack_slot_obj_get_spi()
615 static int dynptr_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_get_spi()
620 static int iter_get_spi(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int nr_slots) in iter_get_spi()
669 static void mark_dynptr_stack_regs(struct bpf_verifier_env *env, in mark_dynptr_stack_regs()
680 static void mark_dynptr_cb_reg(struct bpf_verifier_env *env, in mark_dynptr_cb_reg()
690 static int mark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in mark_stack_slots_dynptr()
751 static void invalidate_dynptr(struct bpf_verifier_env *env, struct bpf_func_state *state, int spi) in invalidate_dynptr()
788 static int unmark_stack_slots_dynptr(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in unmark_stack_slots_dynptr()
837 static void mark_reg_invalid(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) in mark_reg_invalid()
845 static int destroy_if_dynptr_stack_slot(struct bpf_verifier_env *env, in destroy_if_dynptr_stack_slot()
901 static bool is_dynptr_reg_valid_uninit(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in is_dynptr_reg_valid_uninit()
929 static bool is_dynptr_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in is_dynptr_reg_valid_init()
958 static bool is_dynptr_type_expected(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in is_dynptr_type_expected()
986 static int mark_stack_slots_iter(struct bpf_verifier_env *env, in mark_stack_slots_iter()
1030 static int unmark_stack_slots_iter(struct bpf_verifier_env *env, in unmark_stack_slots_iter()
1061 static bool is_iter_reg_valid_uninit(struct bpf_verifier_env *env, in is_iter_reg_valid_uninit()
1088 static int is_iter_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in is_iter_reg_valid_init()
1164 static void mark_stack_slot_misc(struct bpf_verifier_env *env, u8 *stype) in mark_stack_slot_misc()
1276 static int grow_stack_state(struct bpf_verifier_env *env, struct bpf_func_state *state, int size) in grow_stack_state()
1305 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) in acquire_reference_state()
1436 static u32 state_htab_size(struct bpf_verifier_env *env) in state_htab_size()
1441 static struct bpf_verifier_state_list **explored_state(struct bpf_verifier_env *env, int idx) in explored_state()
1620 static void update_branch_counts(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in update_branch_counts()
1645 static int pop_stack(struct bpf_verifier_env *env, int *prev_insn_idx, in pop_stack()
1674 static struct bpf_verifier_state *push_stack(struct bpf_verifier_env *env, in push_stack()
1772 static void __mark_reg_const_zero(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) in __mark_reg_const_zero()
1782 static void mark_reg_known_zero(struct bpf_verifier_env *env, in mark_reg_known_zero()
2192 static int reg_bounds_sanity_check(struct bpf_verifier_env *env, in reg_bounds_sanity_check()
2267 static void __mark_reg_unknown(const struct bpf_verifier_env *env, in __mark_reg_unknown()
2284 static void mark_reg_unknown(struct bpf_verifier_env *env, in mark_reg_unknown()
2297 static void __mark_reg_not_init(const struct bpf_verifier_env *env, in __mark_reg_not_init()
2304 static void mark_reg_not_init(struct bpf_verifier_env *env, in mark_reg_not_init()
2317 static void mark_btf_ld_reg(struct bpf_verifier_env *env, in mark_btf_ld_reg()
2334 static void init_reg_state(struct bpf_verifier_env *env, in init_reg_state()
2359 static void init_func_state(struct bpf_verifier_env *env, in init_func_state()
2372 static struct bpf_verifier_state *push_async_cb(struct bpf_verifier_env *env, in push_async_cb()
2431 static int find_subprog(struct bpf_verifier_env *env, int off) in find_subprog()
2443 static int add_subprog(struct bpf_verifier_env *env, int off) in add_subprog()
2466 static int bpf_find_exception_callback_insn_off(struct bpf_verifier_env *env) in bpf_find_exception_callback_insn_off()
2604 static struct btf *__find_kfunc_desc_btf(struct bpf_verifier_env *env, in __find_kfunc_desc_btf()
2674 static struct btf *find_kfunc_desc_btf(struct bpf_verifier_env *env, s16 offset) in find_kfunc_desc_btf()
2690 static int add_kfunc_call(struct bpf_verifier_env *env, u32 func_id, s16 offset) in add_kfunc_call()
2864 static int add_subprog_and_kfunc(struct bpf_verifier_env *env) in add_subprog_and_kfunc()
2927 static int check_subprogs(struct bpf_verifier_env *env) in check_subprogs()
2983 static int mark_reg_read(struct bpf_verifier_env *env, in mark_reg_read()
3031 static int mark_dynptr_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in mark_dynptr_read()
3057 static int mark_iter_read(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in mark_iter_read()
3080 static bool is_reg64(struct bpf_verifier_env *env, struct bpf_insn *insn, in is_reg64()
3190 static bool insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) in insn_has_def32()
3200 static void mark_insn_zext(struct bpf_verifier_env *env, in mark_insn_zext()
3213 static int __check_reg_arg(struct bpf_verifier_env *env, struct bpf_reg_state *regs, u32 regno, in __check_reg_arg()
3258 static int check_reg_arg(struct bpf_verifier_env *env, u32 regno, in check_reg_arg()
3282 static void mark_jmp_point(struct bpf_verifier_env *env, int idx) in mark_jmp_point()
3287 static bool is_jmp_point(struct bpf_verifier_env *env, int insn_idx) in is_jmp_point()
3293 static int push_jmp_history(struct bpf_verifier_env *env, struct bpf_verifier_state *cur, in push_jmp_history()
3395 struct bpf_verifier_env *env = bt->env; in bt_reset() local
3544 static int backtrack_insn(struct bpf_verifier_env *env, int idx, int subseq_idx, in backtrack_insn()
3872 static void mark_all_scalars_precise(struct bpf_verifier_env *env, in mark_all_scalars_precise()
3919 static void mark_all_scalars_imprecise(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in mark_all_scalars_imprecise()
3971 static int mark_precise_scalar_ids(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in mark_precise_scalar_ids()
4121 static int __mark_chain_precision(struct bpf_verifier_env *env, int regno) in __mark_chain_precision()
4325 int mark_chain_precision(struct bpf_verifier_env *env, int regno) in mark_chain_precision()
4333 static int mark_chain_precision_batch(struct bpf_verifier_env *env) in mark_chain_precision_batch()
4417 static void save_register_state(struct bpf_verifier_env *env, in save_register_state()
4444 static int check_stack_write_fixed_off(struct bpf_verifier_env *env, in check_stack_write_fixed_off()
4580 static int check_stack_write_var_off(struct bpf_verifier_env *env, in check_stack_write_var_off()
4684 static void mark_reg_stack_read(struct bpf_verifier_env *env, in mark_reg_stack_read()
4725 static int check_stack_read_fixed_off(struct bpf_verifier_env *env, in check_stack_read_fixed_off()
4857 static struct bpf_reg_state *reg_state(struct bpf_verifier_env *env, int regno) in reg_state()
4875 static int check_stack_read_var_off(struct bpf_verifier_env *env, in check_stack_read_var_off()
4906 static int check_stack_read(struct bpf_verifier_env *env, in check_stack_read()
4963 static int check_stack_write(struct bpf_verifier_env *env, in check_stack_write()
4986 static int check_map_access_type(struct bpf_verifier_env *env, u32 regno, in check_map_access_type()
5009 static int __check_mem_access(struct bpf_verifier_env *env, int regno, in __check_mem_access()
5045 static int check_mem_region_access(struct bpf_verifier_env *env, u32 regno, in check_mem_region_access()
5100 static int __check_ptr_off_reg(struct bpf_verifier_env *env, in __check_ptr_off_reg()
5132 static int check_ptr_off_reg(struct bpf_verifier_env *env, in check_ptr_off_reg()
5138 static int map_kptr_match_type(struct bpf_verifier_env *env, in map_kptr_match_type()
5217 static bool in_rcu_cs(struct bpf_verifier_env *env) in in_rcu_cs()
5264 static u32 btf_ld_kptr_type(struct bpf_verifier_env *env, struct btf_field *kptr_field) in btf_ld_kptr_type()
5287 static int check_map_kptr_access(struct bpf_verifier_env *env, u32 regno, in check_map_kptr_access()
5344 static int check_map_access(struct bpf_verifier_env *env, u32 regno, in check_map_access()
5407 static bool may_access_direct_pkt_data(struct bpf_verifier_env *env, in may_access_direct_pkt_data()
5449 static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, in check_packet_access()
5492 static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, in check_ctx_access()
5528 static int check_flow_keys_access(struct bpf_verifier_env *env, int off, in check_flow_keys_access()
5540 static int check_sock_access(struct bpf_verifier_env *env, int insn_idx, in check_sock_access()
5585 static bool is_pointer_value(struct bpf_verifier_env *env, int regno) in is_pointer_value()
5590 static bool is_ctx_reg(struct bpf_verifier_env *env, int regno) in is_ctx_reg()
5597 static bool is_sk_reg(struct bpf_verifier_env *env, int regno) in is_sk_reg()
5604 static bool is_pkt_reg(struct bpf_verifier_env *env, int regno) in is_pkt_reg()
5611 static bool is_flow_key_reg(struct bpf_verifier_env *env, int regno) in is_flow_key_reg()
5661 static int check_pkt_ptr_alignment(struct bpf_verifier_env *env, in check_pkt_ptr_alignment()
5696 static int check_generic_ptr_alignment(struct bpf_verifier_env *env, in check_generic_ptr_alignment()
5720 static int check_ptr_alignment(struct bpf_verifier_env *env, in check_ptr_alignment()
5779 static int check_max_stack_depth_subprog(struct bpf_verifier_env *env, int idx) in check_max_stack_depth_subprog()
5920 static int check_max_stack_depth(struct bpf_verifier_env *env) in check_max_stack_depth()
5937 static int get_callee_stack_depth(struct bpf_verifier_env *env, in get_callee_stack_depth()
5952 static int __check_buffer_access(struct bpf_verifier_env *env, in __check_buffer_access()
5976 static int check_tp_buffer_access(struct bpf_verifier_env *env, in check_tp_buffer_access()
5992 static int check_buffer_access(struct bpf_verifier_env *env, in check_buffer_access()
6312 static bool type_is_rcu(struct bpf_verifier_env *env, in type_is_rcu()
6323 static bool type_is_rcu_or_null(struct bpf_verifier_env *env, in type_is_rcu_or_null()
6334 static bool type_is_trusted(struct bpf_verifier_env *env, in type_is_trusted()
6348 static int check_ptr_to_btf_access(struct bpf_verifier_env *env, in check_ptr_to_btf_access()
6496 static int check_ptr_to_map_access(struct bpf_verifier_env *env, in check_ptr_to_map_access()
6562 static int check_stack_slot_within_bounds(struct bpf_verifier_env *env, in check_stack_slot_within_bounds()
6585 struct bpf_verifier_env *env, in check_stack_access_within_bounds()
6648 static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, in check_mem_access()
6884 static int check_atomic(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) in check_atomic()
6998 struct bpf_verifier_env *env, int regno, int off, in check_stack_range_initialized()
7153 static int check_helper_mem_access(struct bpf_verifier_env *env, int regno, in check_helper_mem_access()
7252 static int check_mem_size_reg(struct bpf_verifier_env *env, in check_mem_size_reg()
7305 static int check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in check_mem_reg()
7337 static int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg, in check_kfunc_mem_size_reg()
7387 static int process_spin_lock(struct bpf_verifier_env *env, int regno, in process_spin_lock()
7464 static int process_timer_func(struct bpf_verifier_env *env, int regno, in process_timer_func()
7501 static int process_kptr_func(struct bpf_verifier_env *env, int regno, in process_kptr_func()
7565 static int process_dynptr_func(struct bpf_verifier_env *env, int regno, int insn_idx, in process_dynptr_func()
7638 static u32 iter_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg, int spi) in iter_ref_obj_id()
7673 static int process_iter_arg(struct bpf_verifier_env *env, int regno, int insn_idx, in process_iter_arg()
7749 static struct bpf_verifier_state *find_prev_entry(struct bpf_verifier_env *env, in find_prev_entry()
7776 static void maybe_widen_reg(struct bpf_verifier_env *env, in maybe_widen_reg()
7789 static int widen_imprecise_scalars(struct bpf_verifier_env *env, in widen_imprecise_scalars()
7899 static int process_iter_next_call(struct bpf_verifier_env *env, int insn_idx, in process_iter_next_call()
7982 static int resolve_map_arg_type(struct bpf_verifier_env *env, in resolve_map_arg_type()
8130 static int check_reg_type(struct bpf_verifier_env *env, u32 regno, in check_reg_type()
8291 static int check_func_arg_reg_off(struct bpf_verifier_env *env, in check_func_arg_reg_off()
8361 static struct bpf_reg_state *get_dynptr_arg_reg(struct bpf_verifier_env *env, in get_dynptr_arg_reg()
8383 static int dynptr_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_id()
8396 static int dynptr_ref_obj_id(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in dynptr_ref_obj_id()
8409 static enum bpf_dynptr_type dynptr_get_type(struct bpf_verifier_env *env, in dynptr_get_type()
8427 static int check_reg_const_str(struct bpf_verifier_env *env, in check_reg_const_str()
8475 static int check_func_arg(struct bpf_verifier_env *env, u32 arg, in check_func_arg()
8734 static bool may_update_sockmap(struct bpf_verifier_env *env, int func_id) in may_update_sockmap()
8766 static bool allow_tail_call_in_subprogs(struct bpf_verifier_env *env) in allow_tail_call_in_subprogs()
8772 static int check_map_func_compatibility(struct bpf_verifier_env *env, in check_map_func_compatibility()
9112 static void clear_all_pkt_pointers(struct bpf_verifier_env *env) in clear_all_pkt_pointers()
9152 static int release_reference(struct bpf_verifier_env *env, in release_reference()
9171 static void invalidate_non_owning_refs(struct bpf_verifier_env *env) in invalidate_non_owning_refs()
9182 static void clear_caller_saved_regs(struct bpf_verifier_env *env, in clear_caller_saved_regs()
9203 static int setup_func_entry(struct bpf_verifier_env *env, int subprog, int callsite, in setup_func_entry()
9254 static int btf_check_func_arg_match(struct bpf_verifier_env *env, int subprog, in btf_check_func_arg_match()
9322 static int btf_check_subprog_call(struct bpf_verifier_env *env, int subprog, in btf_check_subprog_call()
9350 static int push_callback_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in push_callback_call()
9420 static int check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_func_call()
9483 int map_set_for_each_callback_args(struct bpf_verifier_env *env, in map_set_for_each_callback_args()
9510 static int set_callee_state(struct bpf_verifier_env *env, in set_callee_state()
9524 static int set_map_elem_callback_state(struct bpf_verifier_env *env, in set_map_elem_callback_state()
9554 static int set_loop_callback_state(struct bpf_verifier_env *env, in set_loop_callback_state()
9576 static int set_timer_callback_state(struct bpf_verifier_env *env, in set_timer_callback_state()
9606 static int set_find_vma_callback_state(struct bpf_verifier_env *env, in set_find_vma_callback_state()
9634 static int set_user_ringbuf_callback_state(struct bpf_verifier_env *env, in set_user_ringbuf_callback_state()
9657 static int set_rbtree_add_callback_state(struct bpf_verifier_env *env, in set_rbtree_add_callback_state()
9695 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env) in in_rbtree_lock_required_cb()
9719 static int prepare_func_exit(struct bpf_verifier_env *env, int *insn_idx) in prepare_func_exit()
9822 static int do_refine_retval_range(struct bpf_verifier_env *env, in do_refine_retval_range()
9861 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, in record_func_map()
9907 record_func_key(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, in record_func_key()
9943 static int check_reference_leak(struct bpf_verifier_env *env, bool exception_exit) in check_reference_leak()
9962 static int check_bpf_snprintf_call(struct bpf_verifier_env *env, in check_bpf_snprintf_call()
10000 static int check_get_func_ip(struct bpf_verifier_env *env) in check_get_func_ip()
10021 static struct bpf_insn_aux_data *cur_aux(struct bpf_verifier_env *env) in cur_aux()
10026 static bool loop_flag_is_zero(struct bpf_verifier_env *env) in loop_flag_is_zero()
10038 static void update_loop_inline_state(struct bpf_verifier_env *env, u32 subprogno) in update_loop_inline_state()
10056 static int check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_helper_call()
10567 static void mark_btf_func_reg_size(struct bpf_verifier_env *env, u32 regno, in mark_btf_func_reg_size()
10783 static bool is_kfunc_arg_callback(struct bpf_verifier_env *env, const struct btf *btf, in is_kfunc_arg_callback()
10796 static bool __btf_type_is_scalar_struct(struct bpf_verifier_env *env, in __btf_type_is_scalar_struct()
10955 get_kfunc_ptr_arg_type(struct bpf_verifier_env *env, in get_kfunc_ptr_arg_type()
11038 static int process_kf_arg_ptr_to_btf_id(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_btf_id()
11101 static int ref_set_non_owning(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in ref_set_non_owning()
11123 static int ref_convert_owning_non_owning(struct bpf_verifier_env *env, u32 ref_obj_id) in ref_convert_owning_non_owning()
11201 static int check_reg_allocation_locked(struct bpf_verifier_env *env, struct bpf_reg_state *reg) in check_reg_allocation_locked()
11266 static bool check_kfunc_is_graph_root_api(struct bpf_verifier_env *env, in check_kfunc_is_graph_root_api()
11291 static bool check_kfunc_is_graph_node_api(struct bpf_verifier_env *env, in check_kfunc_is_graph_node_api()
11319 __process_kf_arg_ptr_to_graph_root(struct bpf_verifier_env *env, in __process_kf_arg_ptr_to_graph_root()
11369 static int process_kf_arg_ptr_to_list_head(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_list_head()
11377 static int process_kf_arg_ptr_to_rbtree_root(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_rbtree_root()
11386 __process_kf_arg_ptr_to_graph_node(struct bpf_verifier_env *env, in __process_kf_arg_ptr_to_graph_node()
11450 static int process_kf_arg_ptr_to_list_node(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_list_node()
11459 static int process_kf_arg_ptr_to_rbtree_node(struct bpf_verifier_env *env, in process_kf_arg_ptr_to_rbtree_node()
11474 static bool check_css_task_iter_allowlist(struct bpf_verifier_env *env) in check_css_task_iter_allowlist()
11490 static int check_kfunc_args(struct bpf_verifier_env *env, struct bpf_kfunc_call_arg_meta *meta, in check_kfunc_args()
11928 static int fetch_kfunc_meta(struct bpf_verifier_env *env, in fetch_kfunc_meta()
11972 static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_kfunc_call()
12424 static bool check_reg_sane_offset(struct bpf_verifier_env *env, in check_reg_sane_offset()
12498 static bool can_skip_alu_sanitation(const struct bpf_verifier_env *env, in can_skip_alu_sanitation()
12521 static int sanitize_val_alu(struct bpf_verifier_env *env, in sanitize_val_alu()
12543 sanitize_speculative_path(struct bpf_verifier_env *env, in sanitize_speculative_path()
12563 static int sanitize_ptr_alu(struct bpf_verifier_env *env, in sanitize_ptr_alu()
12659 static void sanitize_mark_insn_seen(struct bpf_verifier_env *env) in sanitize_mark_insn_seen()
12672 static int sanitize_err(struct bpf_verifier_env *env, in sanitize_err()
12722 struct bpf_verifier_env *env, in check_stack_access_for_ptr_arithmetic()
12745 static int sanitize_check_bounds(struct bpf_verifier_env *env, in sanitize_check_bounds()
12782 static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, in adjust_ptr_min_max_vals()
13583 static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, in adjust_scalar_min_max_vals()
13744 static int adjust_reg_min_max_vals(struct bpf_verifier_env *env, in adjust_reg_min_max_vals()
13830 static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_alu_op()
14577 static int reg_set_min_max(struct bpf_verifier_env *env, in reg_set_min_max()
14797 static int check_cond_jmp_op(struct bpf_verifier_env *env, in check_cond_jmp_op()
14991 static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_imm()
15110 static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_abs()
15192 static int check_return_code(struct bpf_verifier_env *env, int regno, const char *reg_name) in check_return_code()
15399 static void mark_prune_point(struct bpf_verifier_env *env, int idx) in mark_prune_point()
15404 static bool is_prune_point(struct bpf_verifier_env *env, int insn_idx) in is_prune_point()
15409 static void mark_force_checkpoint(struct bpf_verifier_env *env, int idx) in mark_force_checkpoint()
15414 static bool is_force_checkpoint(struct bpf_verifier_env *env, int insn_idx) in is_force_checkpoint()
15419 static void mark_calls_callback(struct bpf_verifier_env *env, int idx) in mark_calls_callback()
15424 static bool calls_callback(struct bpf_verifier_env *env, int insn_idx) in calls_callback()
15439 static int push_insn(int t, int w, int e, struct bpf_verifier_env *env) in push_insn()
15488 struct bpf_verifier_env *env, in visit_func_call_insn()
15514 static int visit_insn(int t, struct bpf_verifier_env *env) in visit_insn()
15612 static int check_cfg(struct bpf_verifier_env *env) in check_cfg()
15696 static int check_abnormal_return(struct bpf_verifier_env *env) in check_abnormal_return()
15717 static int check_btf_func_early(struct bpf_verifier_env *env, in check_btf_func_early()
15819 static int check_btf_func(struct bpf_verifier_env *env, in check_btf_func()
15894 static void adjust_btf_func(struct bpf_verifier_env *env) in adjust_btf_func()
15910 static int check_btf_line(struct bpf_verifier_env *env, in check_btf_line()
16038 static int check_core_relo(struct bpf_verifier_env *env, in check_core_relo()
16107 static int check_btf_info_early(struct bpf_verifier_env *env, in check_btf_info_early()
16135 static int check_btf_info(struct bpf_verifier_env *env, in check_btf_info()
16227 static void clean_func_state(struct bpf_verifier_env *env, in clean_func_state()
16256 static void clean_verifier_state(struct bpf_verifier_env *env, in clean_verifier_state()
16301 static void clean_live_states(struct bpf_verifier_env *env, int insn, in clean_live_states()
16329 static bool regsafe(struct bpf_verifier_env *env, struct bpf_reg_state *rold, in regsafe()
16450 static bool stacksafe(struct bpf_verifier_env *env, struct bpf_func_state *old, in stacksafe()
16600 static bool func_states_equal(struct bpf_verifier_env *env, struct bpf_func_state *old, in func_states_equal()
16622 static void reset_idmap_scratch(struct bpf_verifier_env *env) in reset_idmap_scratch()
16628 static bool states_equal(struct bpf_verifier_env *env, in states_equal()
16677 static int propagate_liveness_reg(struct bpf_verifier_env *env, in propagate_liveness_reg()
16710 static int propagate_liveness(struct bpf_verifier_env *env, in propagate_liveness()
16757 static int propagate_precision(struct bpf_verifier_env *env, in propagate_precision()
16831 static bool is_iter_next_insn(struct bpf_verifier_env *env, int insn_idx) in is_iter_next_insn()
16918 static int is_state_visited(struct bpf_verifier_env *env, int insn_idx) in is_state_visited()
17286 static int save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type type, in save_aux_ptr_type()
17324 static int do_check(struct bpf_verifier_env *env) in do_check()
17718 static int check_pseudo_btf_id(struct bpf_verifier_env *env, in check_pseudo_btf_id()
17867 static int check_map_prog_compatibility(struct bpf_verifier_env *env, in check_map_prog_compatibility()
17951 static int resolve_pseudo_ldimm64(struct bpf_verifier_env *env) in resolve_pseudo_ldimm64()
18138 static void release_maps(struct bpf_verifier_env *env) in release_maps()
18145 static void release_btfs(struct bpf_verifier_env *env) in release_btfs()
18152 static void convert_pseudo_ld_imm64(struct bpf_verifier_env *env) in convert_pseudo_ld_imm64()
18171 static void adjust_insn_aux_data(struct bpf_verifier_env *env, in adjust_insn_aux_data()
18203 static void adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) in adjust_subprog_starts()
18231 static struct bpf_prog *bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, in bpf_patch_insn_data()
18259 static int adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, in adjust_subprog_starts_after_remove()
18315 static int bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, in bpf_adj_linfo_after_remove()
18379 static int verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) in verifier_remove_insns()
18417 static void sanitize_dead_code(struct bpf_verifier_env *env) in sanitize_dead_code()
18447 static void opt_hard_wire_dead_code_branches(struct bpf_verifier_env *env) in opt_hard_wire_dead_code_branches()
18473 static int opt_remove_dead_code(struct bpf_verifier_env *env) in opt_remove_dead_code()
18497 static int opt_remove_nops(struct bpf_verifier_env *env) in opt_remove_nops()
18518 static int opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, in opt_subreg_zext_lo32_rnd_hi32()
18622 static int convert_ctx_accesses(struct bpf_verifier_env *env) in convert_ctx_accesses()
18821 static int jit_subprogs(struct bpf_verifier_env *env) in jit_subprogs()
19060 static int fixup_call_args(struct bpf_verifier_env *env) in fixup_call_args()
19112 static void specialize_kfunc(struct bpf_verifier_env *env, in specialize_kfunc()
19163 static int fixup_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in fixup_kfunc_call()
19260 static int add_hidden_subprog(struct bpf_verifier_env *env, struct bpf_insn *patch, int len) in add_hidden_subprog()
19289 static int do_misc_fixups(struct bpf_verifier_env *env) in do_misc_fixups()
19853 static struct bpf_prog *inline_bpf_loop(struct bpf_verifier_env *env, in inline_bpf_loop()
19944 static int optimize_bpf_loop(struct bpf_verifier_env *env) in optimize_bpf_loop()
19989 static void free_states(struct bpf_verifier_env *env) in free_states()
20019 static int do_check_common(struct bpf_verifier_env *env, int subprog) in do_check_common()
20152 static int do_check_subprogs(struct bpf_verifier_env *env) in do_check_subprogs()
20202 static int do_check_main(struct bpf_verifier_env *env) in do_check_main()
20214 static void print_verification_stats(struct bpf_verifier_env *env) in print_verification_stats()
20238 static int check_struct_ops_btf_id(struct bpf_verifier_env *env) in check_struct_ops_btf_id()
20645 static int check_attach_btf_id(struct bpf_verifier_env *env) in check_attach_btf_id()
20743 struct bpf_verifier_env *env; in bpf_check() local