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

From: Kees Cook
Date: Wed Dec 07 2016 - 18:35:59 EST


Hi,

As requested, here's an early pull request for v4.10. :) Please pull these
pstore changes for v4.10-rc1.

Thanks!

-Kees

The following changes since commit 07d9a380680d1c0eb51ef87ff2eab5c994949e69:

Linux 4.9-rc2 (2016-10-23 17:10:14 -0700)

are available in the git repository at:

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

for you to fetch changes up to fc46d4e453f50d2b376267f180cae250b54f9fb4:

ramoops: add pdata NULL check to ramoops_probe (2016-11-15 16:34:32 -0800)

----------------------------------------------------------------
Improvements and fixes to pstore subsystem:

- Add additional checks for bad platform data

- Remove bounce buffer in console writer

- Protect read/unlink race with a mutex

- Correctly give up during dump locking failures

- Increase ftrace bandwidth by splitting ftrace buffers per CPU

----------------------------------------------------------------
Joel Fernandes (8):
pstore: Make spinlock per zone instead of global
pstore: Warn on PSTORE_TYPE_PMSG using deprecated function
pstore: Allow prz to control need for locking
ramoops: Split ftrace buffer space into per-CPU zones
pstore: Add ftrace timestamp counter
pstore: Merge per-CPU ftrace records into one
ftrace: Provide API to use global filtering for ftrace ops
pstore: Use global ftrace filters for function trace filtering

Kees Cook (4):
pstore: Make ramoops_init_przs generic for other prz arrays
pstore: improve error report for failed setup
pstore: Clarify context field przs as dprzs
ramoops: add pdata NULL check to ramoops_probe

Li Pengcheng (1):
pstore: Actually give up during locking failure

Namhyung Kim (2):
pstore: Protect unlink with read_mutex
pstore: Convert console write to use ->write_buf

.../bindings/reserved-memory/ramoops.txt | 3 +
fs/pstore/ftrace.c | 11 +-
fs/pstore/inode.c | 15 +-
fs/pstore/internal.h | 34 ---
fs/pstore/platform.c | 5 +-
fs/pstore/ram.c | 327 ++++++++++++++++-----
fs/pstore/ram_core.c | 27 +-
include/linux/ftrace.h | 2 +
include/linux/pstore.h | 76 +++++
include/linux/pstore_ram.h | 14 +-
kernel/trace/ftrace.c | 17 ++
11 files changed, 404 insertions(+), 127 deletions(-)

--
Kees Cook
Nexus Security