Re: [RFC V1 PATCH mm-hotfixes 0/3] mm, arch: A more robust approach to sync top level kernel page tables

Harry Yoo
2025-07-09T13:25:32Z

On Wed, Jul 09, 2025 at 10:16:54PM +0900, Harry Yoo wrote:
> Harry Yoo (3):
> mm: introduce and use {pgd,p4d}_populate_kernel()
> x86/mm: define p*d_populate_kernel() and top level page table sync
> x86/mm: convert {pgd,p4d}_populate{,_init} to _kernel variant
>
> arch/x86/include/asm/pgalloc.h | 41 +++++++++
> arch/x86/mm/init_64.c | 147 ++++++++++++++++-----------------
> arch/x86/mm/kasan_init_64.c | 8 +-
> include/asm-generic/pgalloc.h | 4 +
> include/linux/pgalloc.h | 0

Oops, while I created include/linux/pgalloc.h at first, I removed it
during the development and didn't realize it's still staged in git.

Will fix it in the next version, but let me wait for some feedback
for a while.

> mm/kasan/init.c | 10 +--
> mm/percpu.c | 4 +-
> mm/sparse-vmemmap.c | 4 +-
> 8 files changed, 130 insertions(+), 88 deletions(-)
> create mode 100644 include/linux/pgalloc.h
>
> --
> 2.43.0