]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi/arm: Disable LPAE PAN when calling EFI runtime services
authorArd Biesheuvel <ardb@kernel.org>
Mon, 10 Jun 2024 12:12:45 +0000 (14:12 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 15 Jun 2024 08:25:02 +0000 (10:25 +0200)
commita1439d89480754ddbc0a837544129ff5100f4087
tree7121645c174d9d1b71e44a84e64e152d70e0a299
parent99280413a5b785f22d91e8a8a66dc38f4a214495
efi/arm: Disable LPAE PAN when calling EFI runtime services

EFI runtime services are remapped into the lower 1 GiB of virtual
address space at boot, so they are guaranteed to be able to co-exist
with the kernel virtual mappings without the need to allocate space for
them in the kernel's vmalloc region, which is rather small.

This means those mappings are covered by TTBR0 when LPAE PAN is enabled,
and so 'user' access must be enabled while such calls are in progress.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/include/asm/efi.h