public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Colin Ian King <colin.king@canonical.com>,
	Luis Henriques <lhenriques@suse.com>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Pavel Tatashin <pasha.tatashin@soleen.com>,
	Petr Mladek <pmladek@suse.com>,
	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
	WeiXiong Liao <liaoweixiong@allwinnertech.com>
Subject: [GIT PULL] pstore updates for v5.8-rc1
Date: Sun, 31 May 2020 19:57:25 -0700	[thread overview]
Message-ID: <202005311953.13A77CF20@keescook> (raw)

Hi Linus,

Please pull these pstore updates for v5.8-rc1. This is a pretty big set
of changes (relative to past pstore pulls), but they've lived in -next
for a while. The biggest change here is the ability to support a block
device as a pstore backend, which has been desired for a while. A lot of
additional fixes and refactorings are also included, mostly in support
of the new features.

Thanks!

-Kees

The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136:

  Linux 5.7-rc1 (2020-04-12 12:35:55 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v5.8-rc1

for you to fetch changes up to 78c08247b9d3e03192f8b359aa079024e805a948:

  mtd: Support kmsg dumper based on pstore/blk (2020-05-31 19:49:01 -0700)

----------------------------------------------------------------
Fixes and new features for pstore

- refactor pstore locking for safer module unloading (Kees Cook)
- remove orphaned records from pstorefs when backend unloaded (Kees Cook)
- refactor dump_oops parameter into max_reason (Pavel Tatashin)
- introduce pstore/zone for common code for contiguous storage (WeiXiong Liao)
- introduce pstore/blk for block device backend (WeiXiong Liao)
- introduce mtd backend (WeiXiong Liao)

----------------------------------------------------------------
Kees Cook (22):
      pstore: Drop useless try_module_get() for backend
      pstore: Rename "pstore_lock" to "psinfo_lock"
      pstore: Convert "psinfo" locking to mutex
      pstore: Rename "allpstore" to "records_list"
      pstore: Convert "records_list" locking to mutex
      pstore: Add proper unregister lock checking
      pstore: Refactor pstorefs record list removal
      pstore: Add locking around superblock changes
      pstore: Do not leave timer disabled for next backend
      pstore: Remove filesystem records when backend is unregistered
      pstore: Make sure console capturing will restart
      pstore/platform: Switch pstore_info::name to const
      pstore/platform: Use backend name for console registration
      pstore/platform: Move module params after declarations
      pstore/ram: Adjust module param permissions to reflect reality
      pstore/ram: Refactor DT size parsing
      pstore/ram: Refactor ftrace buffer merging
      pstore/ftrace: Provide ftrace log merging routine
      printk: Collapse shutdown types into a single dump reason
      printk: Introduce kmsg_dump_reason_str()
      pstore/ram: Introduce max_reason and convert dump_oops
      pstore/blk: Introduce "best_effort" mode

Pavel Tatashin (3):
      printk: honor the max_reason field in kmsg_dumper
      pstore/platform: Pass max_reason to kmesg dump
      ramoops: Add "max-reason" optional field to ramoops DT node

WeiXiong Liao (10):
      pstore/zone: Introduce common layer to manage storage zones
      pstore/blk: Introduce backend for block devices
      pstore/zone,blk: Add support for pmsg frontend
      pstore/zone,blk: Add console frontend support
      pstore/zone,blk: Add ftrace frontend support
      Documentation: Add details for pstore/blk
      pstore/zone: Provide way to skip "broken" zone for MTD devices
      pstore/blk: Provide way to query pstore configuration
      pstore/blk: Support non-block storage devices
      mtd: Support kmsg dumper based on pstore/blk

 Documentation/admin-guide/pstore-blk.rst           |  243 ++++
 Documentation/admin-guide/ramoops.rst              |   14 +-
 .../bindings/reserved-memory/ramoops.txt           |   13 +-
 MAINTAINERS                                        |    1 +
 arch/powerpc/kernel/nvram_64.c                     |    4 +-
 drivers/mtd/Kconfig                                |   10 +
 drivers/mtd/Makefile                               |    1 +
 drivers/mtd/mtdpstore.c                            |  578 ++++++++
 drivers/platform/chrome/chromeos_pstore.c          |    2 +-
 fs/pstore/Kconfig                                  |  109 ++
 fs/pstore/Makefile                                 |    6 +
 fs/pstore/blk.c                                    |  517 +++++++
 fs/pstore/ftrace.c                                 |   54 +
 fs/pstore/inode.c                                  |  129 +-
 fs/pstore/internal.h                               |   11 +-
 fs/pstore/platform.c                               |  117 +-
 fs/pstore/ram.c                                    |  155 +--
 fs/pstore/zone.c                                   | 1465 ++++++++++++++++++++
 include/linux/kmsg_dump.h                          |   12 +-
 include/linux/pstore.h                             |    9 +-
 include/linux/pstore_blk.h                         |  118 ++
 include/linux/pstore_ram.h                         |    2 +-
 include/linux/pstore_zone.h                        |   60 +
 kernel/printk/printk.c                             |   32 +-
 kernel/reboot.c                                    |    6 +-
 tools/testing/selftests/pstore/pstore_tests        |    2 +-
 26 files changed, 3464 insertions(+), 206 deletions(-)
 create mode 100644 Documentation/admin-guide/pstore-blk.rst
 create mode 100644 drivers/mtd/mtdpstore.c
 create mode 100644 fs/pstore/blk.c
 create mode 100644 fs/pstore/zone.c
 create mode 100644 include/linux/pstore_blk.h
 create mode 100644 include/linux/pstore_zone.h

-- 
Kees Cook

             reply	other threads:[~2020-06-01  2:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01  2:57 Kees Cook [this message]
2020-06-01 19:35 ` [GIT PULL] pstore updates for v5.8-rc1 pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005311953.13A77CF20@keescook \
    --to=keescook@chromium.org \
    --cc=colin.king@canonical.com \
    --cc=lhenriques@suse.com \
    --cc=liaoweixiong@allwinnertech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=pasha.tatashin@soleen.com \
    --cc=pmladek@suse.com \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox