]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: Fix 5-level paging support in kexec/hibernate trampoline
authorArd Biesheuvel <ardb@kernel.org>
Fri, 10 Jan 2025 17:51:46 +0000 (18:51 +0100)
committerWill Deacon <will@kernel.org>
Tue, 4 Feb 2025 12:23:09 +0000 (12:23 +0000)
commit3648027de1fa91a0c80cffd3ecff263d06e62605
treedc1228b81e19a06fb9ae6edd86e0f0c2d7e1fdbe
parent2014c95afecee3e76ca4a56956a936e23283f05b
arm64: Fix 5-level paging support in kexec/hibernate trampoline

Add the missing code to allocate P4D level page tables when cloning the
the kernel page tables. This fixes a crash that may be observed when
attempting to resume from hibernation on an LPA2 capable system with 4k
pages, which therefore uses 5 levels of paging.

Presumably, kexec is equally affected.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250110175145.785702-2-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/trans_pgd.c