Skip to content
Commit a37dac5c authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

arm64: efi: Limit allocations to 48-bit addressable physical region



The UEFI spec does not mention or reason about the configured size of
the virtual address space at all, but it does mention that all memory
should be identity mapped using a page size of 4 KiB.

This means that a LPA2 capable system that has any system memory outside
of the 48-bit addressable physical range and follows the spec to the
letter may serve page allocation requests from regions of memory that
the kernel cannot access unless it was built with LPA2 support and
enables it at runtime.

So let's ensure that all page allocations are limited to the 48-bit
range.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent d9f26ae7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment