bianbu-linux-6.6/arch/x86/kernel/cpu/mce
Gabriele Paoloni 25bc65d8dd x86/mce: Do not overwrite no_way_out if mce_end() fails
Currently, if mce_end() fails, no_way_out - the variable denoting
whether the machine can recover from this MCE - is determined by whether
the worst severity that was found across the MCA banks associated with
the current CPU, is of panic severity.

However, at this point no_way_out could have been already set by
mca_start() after looking at all severities of all CPUs that entered the
MCE handler. If mce_end() fails, check first if no_way_out is already
set and, if so, stick to it, otherwise use the local worst value.

 [ bp: Massage. ]

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>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20201127161819.3106432-2-gabriele.paoloni@intel.com
2020-11-27 17:38:36 +01:00
..
amd.c x86/MCE/AMD, EDAC/mce_amd: Remove struct smca_hwid.xec_bitmap 2020-08-20 10:34:38 +02:00
apei.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
core.c x86/mce: Do not overwrite no_way_out if mce_end() fails 2020-11-27 17:38:36 +01:00
dev-mcelog.c x86/mce/dev-mcelog: Do not update kflags on AMD systems 2020-09-15 10:04:51 +02:00
genpool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 437 2019-06-05 17:37:17 +02:00
inject.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
intel.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
internal.h x86/mce: Pass pointer to saved pt_regs to severity calculation routines 2020-10-07 10:51:42 +02:00
Makefile x86/mce: Restore MCE injector's module name 2018-12-19 00:04:36 +01:00
p5.c x86/mce: Address objtools noinstr complaints 2020-06-11 15:15:02 +02:00
severity.c x86/mce: Decode a kernel instruction to determine if it is copying from user 2020-10-07 11:32:40 +02:00
therm_throt.c x86/entry: Convert various system vectors 2020-06-11 15:15:14 +02:00
threshold.c x86/entry: Convert various system vectors 2020-06-11 15:15:14 +02:00
winchip.c x86/mce: Address objtools noinstr complaints 2020-06-11 15:15:02 +02:00