pstore: Expose kmsg_bytes as a module parameter
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Thu, 6 Oct 2022 22:42:06 +0000 (19:42 -0300)
committerKees Cook <keescook@chromium.org>
Mon, 17 Oct 2022 20:14:10 +0000 (13:14 -0700)
commit8f5de3fd38b7e64112017bb1630f9df6e1b3331d
tree145e7c0c2d74de6b654996d7bc58d222366b4187
parentd85644dc5cf4023bf1a325f476d58a16bcc0798b
pstore: Expose kmsg_bytes as a module parameter

Currently this tuning is only exposed as a filesystem option,
but most Linux distros automatically mount pstore, hence changing
this setting requires remounting it. Also, if that mount option
wasn't explicitly set it doesn't show up in mount information,
so users cannot check what is the current value of kmsg_bytes.

Let's then expose it as a module parameter, allowing both user
visibility at all times (even if not manually set) and also the
possibility of setting that as a boot/module parameter.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221006224212.569555-3-gpiccoli@igalia.com
fs/pstore/platform.c