Lines Matching refs:regs
13 * Returns the target address and the expected type when regs->ip points
16 static bool decode_cfi_insn(struct pt_regs *regs, unsigned long *target,
32 * ud2 ; <- regs->ip
38 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 12, MAX_INSN_SIZE))
47 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 6, MAX_INSN_SIZE))
55 offset = insn_get_modrm_rm_off(&insn, regs);
59 *target = *(unsigned long *)((void *)regs + offset);
68 enum bug_trap_type handle_cfi_failure(struct pt_regs *regs)
73 if (!is_cfi_trap(regs->ip))
76 if (!decode_cfi_insn(regs, &target, &type))
77 return report_cfi_failure_noaddr(regs, regs->ip);
79 return report_cfi_failure(regs, regs->ip, &target, type);