]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/efi: Move uaccess en/disable out of efi_set_pgd()
authorArd Biesheuvel <ardb@kernel.org>
Wed, 15 Oct 2025 20:56:41 +0000 (22:56 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 18:59:22 +0000 (18:59 +0000)
commit6b9c98e657559408beecde41a532c5bb4cf281bc
tree7d493e596dcc953ccf5fc2b83fc66dd00fd2ab87
parent1068cb52e8ef4e21a31095dc932685a543b779bc
arm64/efi: Move uaccess en/disable out of efi_set_pgd()

efi_set_pgd() will no longer be called when invoking EFI runtime
services via the efi_rts_wq work queue, but the uaccess en/disable are
still needed when using PAN emulation using TTBR0 switching. So move
these into the callers.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/efi.h
arch/arm64/kernel/efi.c