]> 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)
commit0c106a31df89386436bc93aeaab9b0f55238d01c
treef800c8c790549217d7f16c413c3609de51bb4e25
parent3bf924a0188e10770369b0e73fa8b8e087fa0526
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: 503e21afa779 ("pstore: Replace arguments for write() API")
Fixes: 4a22f58c3c79 ("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