Commit b4eb80a7 authored by Tony Luck's avatar Tony Luck Committed by Greg Kroah-Hartman

x86/mce: Improve error message when kernel cannot recover

commit c7d606f560e4c698884697fef503e4abacdd8c25 upstream.

Since we added support to add recovery from some errors inside the kernel in:

commit b2f9d678 ("x86/mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries")

we have done a less than stellar job at reporting the cause of recoverable
machine checks that occur in other parts of the kernel. The user just gets
the unhelpful message:

	mce: [Hardware Error]: Machine check: Action required: unknown MCACOD

doubly unhelpful when they check the manual for the reported IA32_MSR_STATUS.MCACOD
and see that it is listed as one of the standard recoverable values.

Add an extra rule to the MCE severity table to catch this case and report it

	mce: [Hardware Error]: Machine check: Data load in unrecoverable area of kernel

Fixes: b2f9d678 ("x86/mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries")
Signed-off-by: default avatarTony Luck <>
Signed-off-by: default avatarThomas Gleixner <>
Cc: Qiuxu Zhuo <>
Cc: Ashok Raj <>
Cc: # 4.6+
Cc: Dan Williams <>
Cc: Borislav Petkov <>
Link: default avatarGreg Kroah-Hartman <>
parent 995cddcc
......@@ -143,6 +143,11 @@ static struct severity {
PANIC, "Data load in unrecoverable area of kernel",
PANIC, "Action required: unknown MCACOD",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment