mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
x86/mce: Panic for LMCE only if mca_cfg.tolerant < 3
Right now for LMCE, if no_way_out is set, mce_panic() is called regardless of mca_cfg.tolerant. This is not correct as, if mca_cfg.tolerant = 3, the code should never panic. Add that check. [ bp: use local ptr 'cfg'. ] Signed-off-by: Gabriele Paoloni <gabriele.paoloni@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/20201127161819.3106432-4-gabriele.paoloni@intel.com
This commit is contained in:
parent
e273e6e12a
commit
3a866b16fd
1 changed files with 1 additions and 1 deletions
|
@ -1368,7 +1368,7 @@ noinstr void do_machine_check(struct pt_regs *regs)
|
||||||
* to see it will clear it.
|
* to see it will clear it.
|
||||||
*/
|
*/
|
||||||
if (lmce) {
|
if (lmce) {
|
||||||
if (no_way_out)
|
if (no_way_out && cfg->tolerant < 3)
|
||||||
mce_panic("Fatal local machine check", &m, msg);
|
mce_panic("Fatal local machine check", &m, msg);
|
||||||
} else {
|
} else {
|
||||||
order = mce_start(&no_way_out);
|
order = mce_start(&no_way_out);
|
||||||
|
|
Loading…
Add table
Reference in a new issue