RE: [PATCH 1/1] mm: prevent poison consumption when splitting THP

From: Luck, Tony

Date: Mon Sep 29 2025 - 11:51:55 EST


> Miaohe mentioned in another e-mail that there was an HWPoisoned flag for the raw error 4K page.
> We could use that flag just to skip that raw error page and still use the zeropage for other
> healthy sub-pages. I'll try that.

That HWPoisoned flag is only set for raw pages where an error has been detected. Maybe Linux
could implement an "is_this_page_all_zero_mc_safe()"[1] that would catch undetected poison and
avoid a crash in that case too?

-Tony

[1] terrible name, pick something better.