[PATCH] arm64: mm: Make PUD folding check in set_pud() a runtime check
Catalin Marinas
catalin.marinas at arm.com
Mon Feb 19 08:48:26 PST 2024
On Sat, 17 Feb 2024 00:59:44 +0100, Ard Biesheuvel wrote:
> When set_pud() is called on a 4-level paging build config that runs with
> 3 levels at runtime (which happens with 16k page size builds with
> support for LPA2), the updated entry is in fact a PGD in
> swapper_pg_dir[], and this is mapped read-only after boot.
>
> So in this case, the existing check needs to be performed as well, even
> though __PAGETABLE_PUD_FOLDED is not #define'd. So replace the #ifdef
> with a call to pgtable_l4_enabled().
>
> [...]
Applied to arm64 (for-next/stage1-lpa2), thanks!
[1/1] arm64: mm: Make PUD folding check in set_pud() a runtime check
https://git.kernel.org/arm64/c/90e636f60b76
--
Catalin
More information about the linux-arm-kernel
mailing list