RE: [PATCH] x86/MCE/AMD: Always give PANIC severity for UC errors in kernel context

From: Ghannam, Yazen
Date: Tue Sep 26 2017 - 11:21:30 EST


> -----Original Message-----
> From: Borislav Petkov [mailto:bp@xxxxxxxxx]
> Sent: Tuesday, September 26, 2017 8:01 AM
> To: Ghannam, Yazen <Yazen.Ghannam@xxxxxxx>
> Cc: linux-edac@xxxxxxxxxxxxxxx; Tony Luck <tony.luck@xxxxxxxxx>;
> x86@xxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] x86/MCE/AMD: Always give PANIC severity for UC
> errors in kernel context
>
> (drop CC:stable from CC list)
>
> Do not add CC:stable when sending the patch with git send-email.
>

How should I CC:stable?

> On Tue, Sep 19, 2017 at 09:07:11AM -0500, Yazen Ghannam wrote:
> > From: Yazen Ghannam <yazen.ghannam@xxxxxxx>
> >
> > Our current AMD severity logic can possibly give MCE_AR_SEVERITY for
> > uncorrectable errors in kernel context. The current #MC handler only
> > calls
> > memory_failure() on errors in user context, but older versions will
> > call
> > memory_failure() unconditionally.
>
> Err, I don't understand this aspect: what does "older versions" mean here
> exactly?
>
> There are no older versions of the #MC handler - there's only one version -
> the version against which this patch gets applied.
>
> Hmmm?
>

There are the stable branches on kernel.org and some distro kernels based on
older kernel versions.

The AMD severity grading function was introduced in v4.1 and has this issue.
However, the following commit was included in v4.6 and masks the issue.

b2f9d678e28c x86/mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries

This patch will apply to v4.9 and later. Another version will be needed to apply
to the v4.1 and v4.4. stable branches.

Thanks,
Yazen