[PATCH v2] arm64/kernel: Always use level 2 or higher for early mappings
Catalin Marinas
catalin.marinas at arm.com
Thu Mar 13 11:08:27 PDT 2025
On Tue, 11 Mar 2025 08:30:44 +0100, Ard Biesheuvel wrote:
> The page table population code in map_range() uses a recursive algorithm
> to create the early mappings of the kernel, the DTB and the ID mapped
> text and data pages, and this fails to take into account that the way
> these page tables may be constructed is not precisely the same at each
> level. In particular, block mappings are not permitted at each level,
> and the code as it exists today might inadvertently create such a
> forbidden block mapping if it were used to map a region of the
> appropriate size and alignment.
>
> [...]
Applied to arm64 (for-next/pgtable-cleanups), thanks!
[1/1] arm64/kernel: Always use level 2 or higher for early mappings
https://git.kernel.org/arm64/c/bf25266f8382
--
Catalin
More information about the linux-arm-kernel
mailing list