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

From: Vladis Dronov
Date: Thu Mar 05 2020 - 03:41:45 EST


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(-)