Re: [PATCH] x86/mm/pat: allocate split page tables as kernel page tables

From: Andrew Morton

Date: Mon Jul 20 2026 - 19:19:38 EST


On Mon, 20 Jul 2026 10:27:29 +0100 "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx> wrote:

> When splitting a large page in CPA in __split_large_page() we allocate a
> PTE directly without going through the standard page table allocation
> routines such as pte_alloc_one_kernel().
>
> This means the page table constructor is never called nor is the page table
> marked as a kernel page table.

Thanks, I'll await x86 review on this (Dave?). Also, Sashiko might
have found a pre-existing thing:

https://sashiko.dev/#/patchset/20260720-fix-cpa-kernel-pagetables-v1-1-0766e782cefe@xxxxxxxxxx