]> git.baikalelectronics.ru Git - kernel.git/commit
efi-pstore: Fix write/erase id tracking
authorKees Cook <keescook@chromium.org>
Thu, 18 May 2017 20:07:49 +0000 (13:07 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 22 May 2017 23:53:09 +0000 (16:53 -0700)
commit8cf890195a4891a5c1df7d6646ee0b8e048ad6ac
treef800c8c790549217d7f16c413c3609de51bb4e25
parentb8176056eb12d942a4a5f5e243935f8d193ed998
efi-pstore: Fix write/erase id tracking

Prior to the pstore interface refactoring, the "id" generated during
a backend pstore_write() was only retained by the internal pstore
inode tracking list. Additionally the "part" was ignored, so EFI
would encode this in the id. This corrects the misunderstandings
and correctly sets "id" during pstore_write(), and uses "part"
directly during pstore_erase().

Reported-by: Marta Lofstedt <marta.lofstedt@intel.com>
Fixes: aced73ad3c24 ("pstore: Replace arguments for write() API")
Fixes: bdd01e2e7d9e ("pstore: Replace arguments for erase() API")
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Marta Lofstedt <marta.lofstedt@intel.com>
drivers/firmware/efi/efi-pstore.c