Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()
From: Linus Torvalds
Date: Tue May 01 2018 - 22:53:58 EST
On Tue, May 1, 2018 at 7:26 PM Dan Williams <dan.j.williams@xxxxxxxxx>
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.
Why not just unmap the page and remap a new page in its place? Meaning
that it needs absolutely no special error handling in the callers.
IOW, treat it *exactly* like the whole page poisoning.
We _have_ the technology. Why does this code think it's such a special
snow-flake?
Linus