]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/traps: Fix #DE Oops message regression
authorThomas Gleixner <tglx@linutronix.de>
Mon, 12 Oct 2020 13:11:47 +0000 (15:11 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 13 Oct 2020 17:17:33 +0000 (19:17 +0200)
The conversion of #DE to the idtentry mechanism introduced a change in the
Ooops message which confuses tools which parse crash information in dmesg.

Remove the underscore from 'divide_error' to restore previous behaviour.

Fixes: e2a205ef3636 ("x86/entry: Convert Divide Error to IDTENTRY")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/CACT4Y+bTZFkuZd7+bPArowOv-7Die+WZpfOWnEO_Wgs3U59+oA@mail.gmail.com
arch/x86/kernel/traps.c

index 81a2fb711091c9ee4829dfb753eacd8d40cc4bf1..316ce1c09e849207f299b15bb9b2bc83ba47245b 100644 (file)
@@ -195,7 +195,7 @@ static __always_inline void __user *error_get_trap_addr(struct pt_regs *regs)
 
 DEFINE_IDTENTRY(exc_divide_error)
 {
-       do_error_trap(regs, 0, "divide_error", X86_TRAP_DE, SIGFPE,
+       do_error_trap(regs, 0, "divide error", X86_TRAP_DE, SIGFPE,
                      FPE_INTDIV, error_get_trap_addr(regs));
 }