Skip to content

efi: fix a race and add a sanity check

Vladis Dronov linux-efi lkml stable 3 versions – Applied

Status from this message: The following commit has been merged into the efi/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesApplied
  2. v21 patch 5 repliesSuperseded
  3. v11 patch 9 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3efi: fix a race and a buffer overflow while reading efivars via sysfsdrivers/firmware/efi/efivars.c+20 -92 replies
2/3efi: add a sanity check to efivar_store_raw()drivers/firmware/efi/efivars.c+3 -03 replies
3/3efi: fix a mistype in comments mentioning efivar_entry_iter_begin()drivers/firmware/efi/efi-pstore.c drivers/firmware/efi/vars.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] efi: fix a race and add a sanity check

There is a race and a buffer overflow while reading an efi variable and the first patch fixes it. The second patch adds a sanity check to efivar_store_raw(). And the third one just fixes mistypes in comments.

Vladis Dronov (3):
efi: fix a race and a buffer overflow while reading efivars via sysfs
efi: add a sanity check to efivar_store_raw()
efi: fix a mistype in comments mentioning efivar_entry_iter_begin()

 drivers/firmware/efi/efi-pstore.c |  2 +-
 drivers/firmware/efi/efivars.c    | 32 +++++++++++++++++++++++---------
 drivers/firmware/efi/vars.c       |  2 +-
 3 files changed, 25 insertions(+), 11 deletions(-)