Re: [RFD PATCH] x86/mce: Make sure to send SIGBUS even after losing the race to poison a page

From: Borislav Petkov
Date: Thu Sep 03 2020 - 12:55:39 EST


On Thu, Aug 27, 2020 at 09:32:05AM -0700, Tony Luck wrote:
> The #MC used to win that race and the page was taken offline and SIGBUS
> sent to the task.
>
> Changes to how Linux processes machine checks now mean that:
> a) Linux will offline the page based on the UCNA siganture in the
> CMCI handler.

Let's see if that logic makes sense: if #MC offlines the page and sends
SIGBUS but CMCI only offlines the page, isn't it only logical for the
CMCI to *also* send the SIGBUS too, after having offlined the page?

I.e., both should do the proper and full recovery action. Just sayin...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette