[PATCH v2] arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults
Catalin Marinas
catalin.marinas at arm.com
Tue Oct 13 03:14:41 PDT 2026
On Tue, 13 Oct 2026 09:30:08 +0200, Ard Biesheuvel wrote:
> When EFI runtime services are invoked from a preemptible kthread, the
> kthread runs with efi_mm installed via kthread_use_mm() and preemption
> enabled, so neither faulthandler_disabled() nor !mm applies in
> do_page_fault(). A permission fault taken by the firmware on one of its
> own (TTBR0) mappings then hits the 'access to user memory outside
> uaccess routines' check and oopses, without efi_runtime_fixup_exception()
> ever being consulted.
>
> [...]
Applied to arm64 (for-next/efi), thanks!
[1/1] arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults
https://git.kernel.org/arm64/c/171be684bfa3
More information about the linux-arm-kernel
mailing list