|
|
@@ -208,12 +208,11 @@ static int mce_severity_amd(struct mce *m, int tolerant, char **msg, bool is_exc
|
|
|
*/
|
|
|
if (mce_flags.overflow_recov) {
|
|
|
/* software can try to contain */
|
|
|
- if (!(m->mcgstatus & MCG_STATUS_RIPV))
|
|
|
- if (ctx == IN_KERNEL)
|
|
|
- return MCE_PANIC_SEVERITY;
|
|
|
+ if (!(m->mcgstatus & MCG_STATUS_RIPV) && (ctx == IN_KERNEL))
|
|
|
+ return MCE_PANIC_SEVERITY;
|
|
|
|
|
|
- /* kill current process */
|
|
|
- return MCE_AR_SEVERITY;
|
|
|
+ /* kill current process */
|
|
|
+ return MCE_AR_SEVERITY;
|
|
|
} else {
|
|
|
/* at least one error was not logged */
|
|
|
if (m->status & MCI_STATUS_OVER)
|