From: Ewout van Bekkum <ew...@google.com> The machine check handler, do_machine_check(), has a sanity check before clearing the MCE banks in case the system has no_way_out and has to crash. However, this sanity check does not take into account the configured MCE tolerant level as the system may still keep running. The sanity check was updated to check if the system has no_way_out and that no_way_out is relevant (tolerant level is less than 3).
Signed-off-by: Ewout van Bekkum <ew...@google.com> Signed-off-by: Havard Skinnemoen <hskinnem...@google.com> --- arch/x86/kernel/cpu/mcheck/mce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 64270d7..1587b18 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -1153,7 +1153,7 @@ void do_machine_check(struct pt_regs *regs, long error_code) /* mce_clear_state will clear *final, save locally for use later */ m = *final; - if (!no_way_out) + if (!(no_way_out && cfg->tolerant < 3)) mce_clear_state(toclear); /* -- 2.0.0.526.g5318336 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/