Home
last modified time | relevance | path

Searched refs:off_reg (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/bpf/
H A Dfixups.c1759 u32 off_reg; in bpf_do_misc_fixups() local
1771 off_reg = issrc ? insn->src_reg : insn->dst_reg; in bpf_do_misc_fixups()
1776 *patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1); in bpf_do_misc_fixups()
1778 *patch++ = BPF_ALU64_REG(BPF_SUB, BPF_REG_AX, off_reg); in bpf_do_misc_fixups()
1779 *patch++ = BPF_ALU64_REG(BPF_OR, BPF_REG_AX, off_reg); in bpf_do_misc_fixups()
1782 *patch++ = BPF_ALU64_REG(BPF_AND, BPF_REG_AX, off_reg); in bpf_do_misc_fixups()
1792 *patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1); in bpf_do_misc_fixups()
H A Dverifier.c14367 const struct bpf_reg_state *off_reg, in sanitize_ptr_alu() argument
14374 bool off_is_imm = tnum_is_const(off_reg->var_off); in sanitize_ptr_alu()
14375 bool off_is_neg = reg_smin(off_reg) < 0; in sanitize_ptr_alu()
14393 if (!tnum_is_const(off_reg->var_off) && in sanitize_ptr_alu()
14394 (reg_smin(off_reg) < 0) != (reg_smax(off_reg) < 0)) in sanitize_ptr_alu()
14579 const struct bpf_reg_state *off_reg) in adjust_ptr_min_max_vals() argument
14584 bool known = tnum_is_const(off_reg->var_off); in adjust_ptr_min_max_vals()
14585 s64 smin_val = reg_smin(off_reg), smax_val = reg_smax(off_reg); in adjust_ptr_min_max_vals()
15742 struct bpf_reg_state *ptr_reg = NULL, off_reg = {0}; adjust_reg_min_max_vals() local
[all...]