Re: [PATCH v2 03/14] mm/mm_init: verify zones for template-initialized pages
From: Lance Yang
Date: Mon Nov 16 2026 - 03:41:17 EST
On Fri, Nov 13, 2026 at 11:34:31AM +0800, Muchun Song wrote:
>Template-based ZONE_DEVICE initialization bypasses
>__init_single_page(), which means copied struct pages do not run the
>vmemmap zone consistency check.
>
>Verify each destination after copying the template so the fast path gets
>the same validation as regular page initialization.
>
>Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
>Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
>---
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>