]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
efi-pstore: Refactor erase routine
authorKees Cook <keescook@chromium.org>
Fri, 19 May 2017 20:21:07 +0000 (13:21 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 31 May 2017 17:13:43 +0000 (10:13 -0700)
commitefb74e4bb1abeb5bd4c9296b2adfdc253561bc72
treeaddf2e1ec8e7ff33a200fa9915c7e51ce6d01c6c
parent656de42e83379e5348e3f4236ff1d79353edfb28
efi-pstore: Refactor erase routine

Right now, every pass through the EFI variables during erase would build
a copy of the old format variable name. Instead, try each name one time
through the EFI variables list. Additionally bump up the buffer size to
avoid truncation in pathological cases, and wipe the write name buffer.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/firmware/efi/efi-pstore.c