Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

From: Dan Williams
Date: Wed May 02 2018 - 09:52:30 EST


On Wed, May 2, 2018 at 1:30 AM, Borislav Petkov <bp@xxxxxxxxx> wrote:
> On Tue, May 01, 2018 at 07:25:57PM -0700, Dan Williams wrote:
>> Right, but the only way to make MCE non-fatal is to teach the machine
>> check handler about recoverable conditions. This patch teaches the
>> machine check handler how to recover copy_to_iter() errors.
>
> Yeah, about that: maybe we talked about this at the time but does the
> actual MCE signature state the error was caused by a read from an nvdimm
> range?

It does not, and this routine would still need to support emulated
persistent memory, or physical address ranges that the administrator
has forced the kernel to treat as pmem that are otherwise not known to
platform firmware.