Skip to content

make efivarfs files immutable by default (for stable)

Matt Fleming stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7lib/ucs2_string: Add ucs2 -> utf8 helper functionsinclude/linux/ucs2_string.h lib/ucs2_string.c+66 -00 replies
2/7efi: Use ucs2_as_utf8 in efivarfs instead of open coding a bad versiondrivers/firmware/efi/efivars.c fs/efivarfs/super.c+14 -232 replies
3/7efi: Do variable name validation tests in utf8drivers/firmware/efi/vars.c+21 -110 replies
4/7efi: Make our variable validation list include the guiddrivers/firmware/efi/efivars.c drivers/firmware/efi/vars.c include/linux/efi.h+38 -220 replies
5/7efi: Make efivarfs entries immutable by defaultDocumentation/filesystems/efivarfs.txt drivers/firmware/efi/vars.c fs/efivarfs/file.c +6 more+258 -410 replies
6/7efi: Add pstore variables to the deletion whitelistdrivers/firmware/efi/vars.c+1 -00 replies
7/7lib/ucs2_string: Correct ucs2 -> utf8 conversionlib/ucs2_string.c+7 -70 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLee, Chun-YiMatthew GarrettPeter JonesLaszlo Ersek
1/7T-b A-b
2/7T-b A-b
3/7T-b A-b
4/7T-b A-b
5/7T-b A-b
6/7A-b T-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/7] make efivarfs files immutable by default (for stable)

Stable folks,

This is a backport of the efivarfs anti-bricking changes [1] for stable. Some fixing up was required because the series doesn't apply cleanly before v4.5-rc1 due to the missing inode_lock() accessor.

[1] - https://lkml.kernel.org/r/[email protected]

Jason Andryuk (1):
lib/ucs2_string: Correct ucs2 -> utf8 conversion

Matt Fleming (1):
efi: Add pstore variables to the deletion whitelist

Peter Jones (5):
lib/ucs2_string: Add ucs2 -> utf8 helper functions
efi: Use ucs2_as_utf8 in efivarfs instead of open coding a bad version
efi: Do variable name validation tests in utf8
efi: Make our variable validation list include the guid
efi: Make efivarfs entries immutable by default

 Documentation/filesystems/efivarfs.txt         |   7 ++
 drivers/firmware/efi/efivars.c                 |  35 +++---
 drivers/firmware/efi/vars.c                    | 144 ++++++++++++++++++-------
 fs/efivarfs/file.c                             |  70 ++++++++++++
 fs/efivarfs/inode.c                            |  30 ++++--
 fs/efivarfs/internal.h                         |   3 +-
 fs/efivarfs/super.c                            |  16 +--
 include/linux/efi.h                            |   5 +-
 include/linux/ucs2_string.h                    |   4 +
 lib/ucs2_string.c                              |  62 +++++++++++
 tools/testing/selftests/efivarfs/efivarfs.sh   |  19 +++-
 tools/testing/selftests/efivarfs/open-unlink.c |  72 ++++++++++++-
 12 files changed, 384 insertions(+), 83 deletions(-)
Signature · 1 line
2.6.2