EFI fixes for v6.14 #2
From: Ard Biesheuvel <[email protected]>
Hi Linus,
Another couple of EFI fixes for v6.14. Only James's patch stands out, as it implements a workaround for odd behavior in fwupd in user space, which creates EFI variables by touching a file in efivarfs, clearing the immutable bit (which gets set automatically for $reasons) and then opening it again for writing, none of which is really necessary. The fwupd author and LVFS maintainer is already rolling out a fix for this on the fwupd side, and suggested that the workaround in this PR could be backed out again during the next cycle.
(There is a semantic mismatch in efivarfs where some essential variable attributes are stored in the first 4 bytes of the file, and so zero length files cannot exist, as they cannot be written back to the underlying variable store. So now, they are dropped once the last reference is released.)
Please pull.
The following changes since commit bbc4578537e350d5bf8a7a2c7d054d6b163b3c41:
efi: Use BIT_ULL() constants for memory attributes (2025-02-04 14:08:22 +0100)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-fixes-for-v6.14-2
for you to fetch changes up to e3cf2d91d0583cae70aeb512da87e3ade25ea912:
efi/mokvar-table: Avoid repeated map/unmap of the same page (2025-02-27 18:25:44 +0100)
----------------------------------------------------------------
EFI fixes for v6.14 #2
- Fix CPER error record parsing bugs
- Fix a couple of efivarfs issues that were introduced in the merge window
- Fix an issue in the early remapping code of the MOKvar table
----------------------------------------------------------------
Ard Biesheuvel (2):
efivarfs: Defer PM notifier registration until .fill_super efi/mokvar-table: Avoid repeated map/unmap of the same page
James Bottomley (1):
efivarfs: allow creation of zero length files
Patrick Rudolph (2):
efi/cper: Fix cper_ia_proc_ctx alignment
efi/cper: Fix cper_arm_ctx_info alignment
Peter Jones (1):
efi: Don't map the entire mokvar table to determine its size
drivers/firmware/efi/cper-arm.c | 2 +- drivers/firmware/efi/cper-x86.c | 2 +- drivers/firmware/efi/mokvar-table.c | 57 ++++++++++++++++++------------------- fs/efivarfs/file.c | 10 ++++--- fs/efivarfs/super.c | 3 +- 5 files changed, 37 insertions(+), 37 deletions(-)
The pull request you sent on Fri, 28 Feb 2025 15:00:21 +0100:
The pull request you sent on Fri, 28 Feb 2025 15:00:21 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.gittags/efi-fixes-for-v6.14-2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ea185bdedb738b9ace114dd6806e95ccd53c6c52
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html