Lines Matching defs:env
213 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo()
256 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write()
272 struct bpf_verifier_env *env = private_data; in verbose() local
291 __printf(3, 4) static void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo()
412 static void print_liveness(struct bpf_verifier_env *env, in print_liveness()
425 static struct bpf_func_state *func(struct bpf_verifier_env *env, in func()
433 static void print_verifier_state(struct bpf_verifier_env *env, in print_verifier_state()
620 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) in acquire_reference_state()
759 static void update_branch_counts(struct bpf_verifier_env *env, struct bpf_verifier_state *st) in update_branch_counts()
776 static int pop_stack(struct bpf_verifier_env *env, int *prev_insn_idx, in pop_stack()
803 static struct bpf_verifier_state *push_stack(struct bpf_verifier_env *env, in push_stack()
886 static void mark_reg_known_zero(struct bpf_verifier_env *env, in mark_reg_known_zero()
1004 static void mark_reg_unknown(struct bpf_verifier_env *env, in mark_reg_unknown()
1027 static void mark_reg_not_init(struct bpf_verifier_env *env, in mark_reg_not_init()
1041 static void init_reg_state(struct bpf_verifier_env *env, in init_reg_state()
1065 static void init_func_state(struct bpf_verifier_env *env, in init_func_state()
1087 static int find_subprog(struct bpf_verifier_env *env, int off) in find_subprog()
1099 static int add_subprog(struct bpf_verifier_env *env, int off) in add_subprog()
1121 static int check_subprogs(struct bpf_verifier_env *env) in check_subprogs()
1195 static int mark_reg_read(struct bpf_verifier_env *env, in mark_reg_read()
1247 static bool is_reg64(struct bpf_verifier_env *env, struct bpf_insn *insn, in is_reg64()
1337 static bool insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) in insn_has_def32()
1345 static void mark_insn_zext(struct bpf_verifier_env *env, in mark_insn_zext()
1358 static int check_reg_arg(struct bpf_verifier_env *env, u32 regno, in check_reg_arg()
1404 static int push_jmp_history(struct bpf_verifier_env *env, in push_jmp_history()
1442 static int backtrack_insn(struct bpf_verifier_env *env, int idx, in backtrack_insn()
1630 static void mark_all_scalars_precise(struct bpf_verifier_env *env, in mark_all_scalars_precise()
1660 static int __mark_chain_precision(struct bpf_verifier_env *env, int regno, in __mark_chain_precision()
1823 static int mark_chain_precision(struct bpf_verifier_env *env, int regno) in mark_chain_precision()
1828 static int mark_chain_precision_stack(struct bpf_verifier_env *env, int spi) in mark_chain_precision_stack()
1884 static int check_stack_write(struct bpf_verifier_env *env, in check_stack_write()
2012 static int check_stack_read(struct bpf_verifier_env *env, in check_stack_read()
2103 static int check_stack_access(struct bpf_verifier_env *env, in check_stack_access()
2128 static int check_map_access_type(struct bpf_verifier_env *env, u32 regno, in check_map_access_type()
2151 static int __check_map_access(struct bpf_verifier_env *env, u32 regno, int off, in __check_map_access()
2167 static int check_map_access(struct bpf_verifier_env *env, u32 regno, in check_map_access()
2238 static bool may_access_direct_pkt_data(struct bpf_verifier_env *env, in may_access_direct_pkt_data()
2278 static int __check_packet_access(struct bpf_verifier_env *env, u32 regno, in __check_packet_access()
2293 static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, in check_packet_access()
2333 static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, in check_ctx_access()
2362 static int check_flow_keys_access(struct bpf_verifier_env *env, int off, in check_flow_keys_access()
2374 static int check_sock_access(struct bpf_verifier_env *env, int insn_idx, in check_sock_access()
2428 static struct bpf_reg_state *reg_state(struct bpf_verifier_env *env, int regno) in reg_state()
2433 static bool is_pointer_value(struct bpf_verifier_env *env, int regno) in is_pointer_value()
2438 static bool is_ctx_reg(struct bpf_verifier_env *env, int regno) in is_ctx_reg()
2445 static bool is_sk_reg(struct bpf_verifier_env *env, int regno) in is_sk_reg()
2452 static bool is_pkt_reg(struct bpf_verifier_env *env, int regno) in is_pkt_reg()
2459 static bool is_flow_key_reg(struct bpf_verifier_env *env, int regno) in is_flow_key_reg()
2467 static int check_pkt_ptr_alignment(struct bpf_verifier_env *env, in check_pkt_ptr_alignment()
2502 static int check_generic_ptr_alignment(struct bpf_verifier_env *env, in check_generic_ptr_alignment()
2526 static int check_ptr_alignment(struct bpf_verifier_env *env, in check_ptr_alignment()
2576 static int update_stack_depth(struct bpf_verifier_env *env, in update_stack_depth()
2596 static int check_max_stack_depth(struct bpf_verifier_env *env) in check_max_stack_depth()
2654 static int get_callee_stack_depth(struct bpf_verifier_env *env, in get_callee_stack_depth()
2669 static int check_ctx_reg(struct bpf_verifier_env *env, in check_ctx_reg()
2693 static int check_tp_buffer_access(struct bpf_verifier_env *env, in check_tp_buffer_access()
2748 static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, in check_mem_access()
2887 static int check_xadd(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) in check_xadd()
2933 static int __check_stack_boundary(struct bpf_verifier_env *env, u32 regno, in __check_stack_boundary()
2962 static int check_stack_boundary(struct bpf_verifier_env *env, int regno, in check_stack_boundary()
3087 static int check_helper_mem_access(struct bpf_verifier_env *env, int regno, in check_helper_mem_access()
3130 static int process_spin_lock(struct bpf_verifier_env *env, int regno, in process_spin_lock()
3225 static int check_func_arg(struct bpf_verifier_env *env, u32 regno, in check_func_arg()
3433 static int check_map_func_compatibility(struct bpf_verifier_env *env, in check_map_func_compatibility()
3684 static void __clear_all_pkt_pointers(struct bpf_verifier_env *env, in __clear_all_pkt_pointers()
3702 static void clear_all_pkt_pointers(struct bpf_verifier_env *env) in clear_all_pkt_pointers()
3711 static void release_reg_references(struct bpf_verifier_env *env, in release_reg_references()
3733 static int release_reference(struct bpf_verifier_env *env, in release_reference()
3750 static int check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, in check_func_call()
3825 static int prepare_func_exit(struct bpf_verifier_env *env, int *insn_idx) in prepare_func_exit()
3886 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, in record_func_map()
3928 static int check_reference_leak(struct bpf_verifier_env *env) in check_reference_leak()
3940 static int check_helper_call(struct bpf_verifier_env *env, int func_id, int insn_idx) in check_helper_call()
4163 static bool check_reg_sane_offset(struct bpf_verifier_env *env, in check_reg_sane_offset()
4198 static struct bpf_insn_aux_data *cur_aux(struct bpf_verifier_env *env) in cur_aux()
4234 static bool can_skip_alu_sanitation(const struct bpf_verifier_env *env, in can_skip_alu_sanitation()
4257 static int sanitize_val_alu(struct bpf_verifier_env *env, in sanitize_val_alu()
4268 static int sanitize_ptr_alu(struct bpf_verifier_env *env, in sanitize_ptr_alu()
4325 static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, in adjust_ptr_min_max_vals()
4566 static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, in adjust_scalar_min_max_vals()
4844 static int adjust_reg_min_max_vals(struct bpf_verifier_env *env, in adjust_reg_min_max_vals()
4920 static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_alu_op()
5789 static int check_cond_jmp_op(struct bpf_verifier_env *env, in check_cond_jmp_op()
5945 static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_imm()
6019 static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) in check_ld_abs()
6103 static int check_return_code(struct bpf_verifier_env *env) in check_return_code()
6199 static u32 state_htab_size(struct bpf_verifier_env *env) in state_htab_size()
6205 struct bpf_verifier_env *env, in explored_state()
6214 static void init_explored_state(struct bpf_verifier_env *env, int idx) in init_explored_state()
6224 static int push_insn(int t, int w, int e, struct bpf_verifier_env *env, in push_insn()
6274 static int check_cfg(struct bpf_verifier_env *env) in check_cfg()
6402 static int check_btf_func(struct bpf_verifier_env *env, in check_btf_func()
6507 static void adjust_btf_func(struct bpf_verifier_env *env) in adjust_btf_func()
6522 static int check_btf_line(struct bpf_verifier_env *env, in check_btf_line()
6644 static int check_btf_info(struct bpf_verifier_env *env, in check_btf_info()
6716 static void clean_func_state(struct bpf_verifier_env *env, in clean_func_state()
6745 static void clean_verifier_state(struct bpf_verifier_env *env, in clean_verifier_state()
6790 static void clean_live_states(struct bpf_verifier_env *env, int insn, in clean_live_states()
7056 static bool states_equal(struct bpf_verifier_env *env, in states_equal()
7089 static int propagate_liveness_reg(struct bpf_verifier_env *env, in propagate_liveness_reg()
7122 static int propagate_liveness(struct bpf_verifier_env *env, in propagate_liveness()
7169 static int propagate_precision(struct bpf_verifier_env *env, in propagate_precision()
7225 static int is_state_visited(struct bpf_verifier_env *env, int insn_idx) in is_state_visited()
7467 static int do_check(struct bpf_verifier_env *env) in do_check()
7845 static int check_map_prog_compatibility(struct bpf_verifier_env *env, in check_map_prog_compatibility()
7892 static int replace_map_fd_with_map_ptr(struct bpf_verifier_env *env) in replace_map_fd_with_map_ptr()
8049 static void release_maps(struct bpf_verifier_env *env) in release_maps()
8066 static void convert_pseudo_ld_imm64(struct bpf_verifier_env *env) in convert_pseudo_ld_imm64()
8081 static int adjust_insn_aux_data(struct bpf_verifier_env *env, in adjust_insn_aux_data()
8114 static void adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) in adjust_subprog_starts()
8128 static struct bpf_prog *bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, in bpf_patch_insn_data()
8147 static int adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, in adjust_subprog_starts_after_remove()
8203 static int bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, in bpf_adj_linfo_after_remove()
8267 static int verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) in verifier_remove_insns()
8305 static void sanitize_dead_code(struct bpf_verifier_env *env) in sanitize_dead_code()
8334 static void opt_hard_wire_dead_code_branches(struct bpf_verifier_env *env) in opt_hard_wire_dead_code_branches()
8360 static int opt_remove_dead_code(struct bpf_verifier_env *env) in opt_remove_dead_code()
8384 static int opt_remove_nops(struct bpf_verifier_env *env) in opt_remove_nops()
8405 static int opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, in opt_subreg_zext_lo32_rnd_hi32()
8488 static int convert_ctx_accesses(struct bpf_verifier_env *env) in convert_ctx_accesses()
8660 static int jit_subprogs(struct bpf_verifier_env *env) in jit_subprogs()
8834 static int fixup_call_args(struct bpf_verifier_env *env) in fixup_call_args()
8871 static int fixup_bpf_calls(struct bpf_verifier_env *env) in fixup_bpf_calls()
9157 static void free_states(struct bpf_verifier_env *env) in free_states()
9187 static void print_verification_stats(struct bpf_verifier_env *env) in print_verification_stats()
9215 struct bpf_verifier_env *env; in bpf_check() local