[PATCH v2] arm64/mm: Sanity check PTE address before runtime P4D/PUD folding

Catalin Marinas catalin.marinas at arm.com
Tue Nov 5 05:52:04 PST 2024


On Tue, 05 Nov 2024 10:39:20 +0100, Ard Biesheuvel wrote:
> The runtime P4D/PUD folding logic assumes that the respective pgd_t* and
> p4d_t* arguments are pointers into actual page tables that are part of
> the hierarchy being operated on.
> 
> This may not always be the case, and we have been bitten once by this
> already [0], where the argument was actually a stack variable, and in
> this case, the logic does not work at all.
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

Easier to read now ;).

[1/1] arm64/mm: Sanity check PTE address before runtime P4D/PUD folding
      https://git.kernel.org/arm64/c/baec23979719

-- 
Catalin




More information about the linux-arm-kernel mailing list