Home
last modified time | relevance | path

Searched refs:ptr_reg (Results 1 - 1 of 1) sorted by relevance

/device/soc/rockchip/common/sdk_linux/kernel/bpf/
H A Dverifier.c2421 struct bpf_reg_state *ptr_reg = NULL, *value_reg = NULL; in check_stack_write_var_off() local
2429 ptr_reg = &cur->regs[ptr_regno]; in check_stack_write_var_off()
2430 min_off = ptr_reg->smin_value + off; in check_stack_write_var_off()
2431 max_off = ptr_reg->smax_value + off + size; in check_stack_write_var_off()
5641 static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, u32 *alu_limit, bool mask_to_left) in retrieve_ptr_limit() argument
5645 switch (ptr_reg->type) { in retrieve_ptr_limit()
5653 ptr_limit = -(ptr_reg->var_off.value + ptr_reg->off); in retrieve_ptr_limit()
5656 max = ptr_reg->map_ptr->value_size; in retrieve_ptr_limit()
5657 ptr_limit = (mask_to_left ? ptr_reg in retrieve_ptr_limit()
5730 sanitize_ptr_alu(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg, struct bpf_reg_state *dst_reg, struct bpf_sanitize_info *info, const bool commit_window) sanitize_ptr_alu() argument
5942 adjust_ptr_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, const struct bpf_reg_state *ptr_reg, const struct bpf_reg_state *off_reg) adjust_ptr_min_max_vals() argument
6879 struct bpf_reg_state *ptr_reg = NULL, off_reg = {0}; adjust_reg_min_max_vals() local
[all...]

Completed in 12 milliseconds