[PATCH 0/2] printk: Introduce loglevel bypass for pstore console

From: Tzung-Bi Shih

Date: Mon Aug 31 2026 - 03:04:30 EST


Currently, offline consoles (e.g., pstore_console backed by ramoops)
inherit the system's global console_loglevel.

In production environments, physical serial consoles (UARTs) are often
heavily rate-limited to prevent verbose messages from causing severe
execution bottlenecks. Unfortunately, this identically silences the
pstore console. When a kernel panic or lockup occurs, engineers are
left inspecting a crash dump that has been stripped of the verbose logs
that could have identified the root cause.

This series introduces CON_BYPASS_LOGLEVEL, a simple flag that allows
specialized offline consoles to request unsuppressed logs directly.

Patch 1 introduces the CON_BYPASS_LOGLEVEL flag.
Patch 2 adopts the flag in pstore_console.

Tzung-Bi Shih (2):
printk: Introduce CON_BYPASS_LOGLEVEL flag
pstore: Bypass loglevel suppression for pstore console

fs/pstore/platform.c | 4 ++++
fs/pstore/ram.c | 3 ++-
include/linux/console.h | 4 ++++
include/linux/pstore.h | 2 ++
kernel/printk/nbcon.c | 7 +++++--
kernel/printk/printk.c | 6 ++++--
6 files changed, 21 insertions(+), 5 deletions(-)

--
2.55.0.897.gb25b4bd76c-goog