[GIT PULL] pstore updates for v4.13-rc1

From: Kees Cook
Date: Wed Jul 05 2017 - 00:29:55 EST


Hi,

Please pull these pstore changes for v4.13-rc1.

Thanks!

-Kees

The following changes since commit 5ed02dbb497422bf225783f46e6eadd237d23d6b:

Linux 4.12-rc3 (2017-05-28 17:20:53 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v4.13-rc1

for you to fetch changes up to 0752e4028c003fba1e2b44c4b3cf6a4482e931b6:

powerpc/nvram: use memdup_user (2017-06-27 17:02:50 -0700)

----------------------------------------------------------------
Various fixes and tweaks for the pstore subsystem. Highlights:
- use memdup_user() instead of open-coded copies (Geliang Tang)
- fix record memory leak during initialization (Douglas Anderson)
- avoid confused compressed record warning (Ankit Kumar)
- prepopulate record timestamp and remove redundant logic from backends

----------------------------------------------------------------
Ankit Kumar (1):
pstore: Don't warn if data is uncompressed and type is not PSTORE_TYPE_DMESG

Douglas Anderson (1):
pstore: Fix leaked pstore_record in pstore_get_backend_records()

Geliang Tang (2):
pstore: use memdup_user
powerpc/nvram: use memdup_user

Kees Cook (5):
pstore: Avoid potential infinite loop
efi-pstore: Refactor erase routine
pstore: Create common record initializer
pstore: Populate pstore record->time field
pstore: Fix format string to use %u for record id

arch/powerpc/kernel/nvram_64.c | 14 +++----
drivers/firmware/efi/efi-pstore.c | 87 +++++++++++++++++----------------------
fs/pstore/inode.c | 22 +++++-----
fs/pstore/internal.h | 2 +
fs/pstore/platform.c | 69 ++++++++++++++++++++-----------
fs/pstore/pmsg.c | 10 ++---
fs/pstore/ram.c | 16 +++----
include/linux/pstore.h | 5 ++-
8 files changed, 114 insertions(+), 111 deletions(-)

--
Kees Cook
Pixel Security