[GIT PULL] EFI fixes for v7.1 #1

Ard Biesheuvel <[email protected]> Wed, 6 May 2026 15:04:28 +0200
Newsgroups org.kernel.vger.linux-efi
Message-ID <[email protected]>
Hi Linus,

This is the first batch of EFI fixes, most of which are -stable candidates.

Please pull.



The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:

  Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-fixes-for-v7.1-1

for you to fetch changes up to 2c340aab5485ebe9e33c01437dd4815ef33c8df5:

  x86/efi: Restore IRQ state in EFI page fault handler (2026-05-05 09:31:28 +0200)

----------------------------------------------------------------
EFI fixes for v7.1 #1

- Fix issues in EFI graceful recovery on x86 introduced by changes to
  the kernel mode FPU APIs

- I-cache coherency fixes for the LoongArch EFI stub

- Locking fix for EFI pstore

- Code tweak for efivarfs

----------------------------------------------------------------
Ard Biesheuvel (2):
      efi/libstub: Move efi_relocate_kernel() into its only remaining user
      x86/efi: Restore IRQ state in EFI page fault handler

Ivan Hu (1):
      x86/efi: Fix graceful fault handling after FPU softirq changes

Thomas Huth (1):
      efi: pstore: Drop efivar lock when efi_pstore_open() returns with an error

Thorsten Blum (1):
      efivarfs: use QSTR() in efivarfs_alloc_dentry

WANG Rui (2):
      efi/loongarch: Implement efi_cache_sync_image()
      efi/libstub: Synchronize instruction cache after kernel relocation

 arch/x86/include/asm/efi.h                    |   3 +-
 arch/x86/mm/fault.c                           |   2 +-
 arch/x86/platform/efi/quirks.c                |  13 +-
 drivers/firmware/efi/efi-pstore.c             |   4 +-
 drivers/firmware/efi/libstub/Makefile         |   2 +-
 drivers/firmware/efi/libstub/efistub.h        |   7 --
 drivers/firmware/efi/libstub/loongarch-stub.c |  80 +++++++++++++
 drivers/firmware/efi/libstub/loongarch.c      |   5 +
 drivers/firmware/efi/libstub/mem.c            |  82 +++++++++++++
 drivers/firmware/efi/libstub/relocate.c       | 166 --------------------------
 fs/efivarfs/super.c                           |   5 +-
 11 files changed, 186 insertions(+), 183 deletions(-)
 delete mode 100644 drivers/firmware/efi/libstub/relocate.c