Lines Matching refs:dst_reg
324 insn->dst_reg, in print_bpf_insn()
331 insn->dst_reg, in print_bpf_insn()
340 insn->dst_reg, in print_bpf_insn()
346 insn->dst_reg, insn->off, in print_bpf_insn()
358 insn->dst_reg, in print_bpf_insn()
366 insn->code, insn->dst_reg, in print_bpf_insn()
382 insn->code, insn->dst_reg, insn->imm); in print_bpf_insn()
399 insn->code, insn->dst_reg, in print_bpf_insn()
404 insn->code, insn->dst_reg, in print_bpf_insn()
753 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in check_xadd()
758 err = check_mem_access(env, insn->dst_reg, insn->off, in check_xadd()
764 return check_mem_access(env, insn->dst_reg, insn->off, in check_xadd()
1038 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in check_alu_op()
1042 if (is_pointer_value(env, insn->dst_reg)) { in check_alu_op()
1044 insn->dst_reg); in check_alu_op()
1049 err = check_reg_arg(regs, insn->dst_reg, DST_OP); in check_alu_op()
1073 err = check_reg_arg(regs, insn->dst_reg, DST_OP); in check_alu_op()
1082 regs[insn->dst_reg] = regs[insn->src_reg]; in check_alu_op()
1089 regs[insn->dst_reg].type = UNKNOWN_VALUE; in check_alu_op()
1090 regs[insn->dst_reg].map_ptr = NULL; in check_alu_op()
1096 regs[insn->dst_reg].type = CONST_IMM; in check_alu_op()
1097 regs[insn->dst_reg].imm = insn->imm; in check_alu_op()
1125 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in check_alu_op()
1147 regs[insn->dst_reg].type == FRAME_PTR && in check_alu_op()
1150 } else if (is_pointer_value(env, insn->dst_reg)) { in check_alu_op()
1152 insn->dst_reg); in check_alu_op()
1162 err = check_reg_arg(regs, insn->dst_reg, DST_OP); in check_alu_op()
1167 regs[insn->dst_reg].type = PTR_TO_STACK; in check_alu_op()
1168 regs[insn->dst_reg].imm = insn->imm; in check_alu_op()
1212 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in check_cond_jmp_op()
1219 regs[insn->dst_reg].type == CONST_IMM && in check_cond_jmp_op()
1220 regs[insn->dst_reg].imm == insn->imm) { in check_cond_jmp_op()
1244 regs[insn->dst_reg].type == PTR_TO_MAP_VALUE_OR_NULL) { in check_cond_jmp_op()
1249 regs[insn->dst_reg].type = PTR_TO_MAP_VALUE; in check_cond_jmp_op()
1251 other_branch->regs[insn->dst_reg].type = CONST_IMM; in check_cond_jmp_op()
1252 other_branch->regs[insn->dst_reg].imm = 0; in check_cond_jmp_op()
1254 other_branch->regs[insn->dst_reg].type = PTR_TO_MAP_VALUE; in check_cond_jmp_op()
1255 regs[insn->dst_reg].type = CONST_IMM; in check_cond_jmp_op()
1256 regs[insn->dst_reg].imm = 0; in check_cond_jmp_op()
1258 } else if (is_pointer_value(env, insn->dst_reg)) { in check_cond_jmp_op()
1259 verbose("R%d pointer comparison prohibited\n", insn->dst_reg); in check_cond_jmp_op()
1268 other_branch->regs[insn->dst_reg].type = CONST_IMM; in check_cond_jmp_op()
1269 other_branch->regs[insn->dst_reg].imm = insn->imm; in check_cond_jmp_op()
1274 regs[insn->dst_reg].type = CONST_IMM; in check_cond_jmp_op()
1275 regs[insn->dst_reg].imm = insn->imm; in check_cond_jmp_op()
1306 err = check_reg_arg(regs, insn->dst_reg, DST_OP); in check_ld_imm()
1317 regs[insn->dst_reg].type = CONST_PTR_TO_MAP; in check_ld_imm()
1318 regs[insn->dst_reg].map_ptr = ld_imm64_to_map_ptr(insn); in check_ld_imm()
1361 if (insn->dst_reg != BPF_REG_0 || insn->off != 0 || in check_ld_abs()
1779 err = check_reg_arg(regs, insn->dst_reg, DST_OP_NO_MARK); in do_check()
1790 insn->dst_reg); in do_check()
1836 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in do_check()
1840 dst_reg_type = regs[insn->dst_reg].type; in do_check()
1843 err = check_mem_access(env, insn->dst_reg, insn->off, in do_check()
1865 err = check_reg_arg(regs, insn->dst_reg, SRC_OP); in do_check()
1870 err = check_mem_access(env, insn->dst_reg, insn->off, in do_check()
1883 insn->dst_reg != BPF_REG_0) { in do_check()
1896 insn->dst_reg != BPF_REG_0) { in do_check()
1908 insn->dst_reg != BPF_REG_0) { in do_check()
1998 insn[1].dst_reg != 0 || insn[1].src_reg != 0 || in replace_map_fd_with_map_ptr()
2135 convert_ctx_access(type, insn->dst_reg, insn->src_reg, in convert_ctx_accesses()