Re: [PATCH RESEND v2] x86/mce: Set PG_hwpoison page flag to avoid the capture kernel panic

From: Borislav Petkov
Date: Tue Oct 10 2023 - 04:26:21 EST


On Tue, Oct 10, 2023 at 08:56:38AM +0800, Zhiquan Li wrote:
> 3. The solution in this patch overcomes all above drawbacks. It set the
> flag just before the production kernel calls panic(), which would not
> introduce additional overhead in capture kernel or conflict with
> other hwpoision-related code in production kernel. Furthermore, it
> leverages the already existing mechanisms to fix the issue as much as
> possible, the code changes are also lightweight.

And the kdump kernel reads the page poison flags and so it avoids
copying them?

More comments as a reply to the patch.

--
Regards/Gruss,
Boris.

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