panic-only-warn-about-deprecated-panic_print-on-write-access.patch removed from -mm tree
The quilt patch titled
Subject: panic: only warn about deprecated panic_print on write access
has been removed from the -mm tree. Its filename was
panic-only-warn-about-deprecated-panic_print-on-write-access.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Gal Pressman <[email protected]>
Subject: panic: only warn about deprecated panic_print on write access
Date: Tue, 6 Jan 2026 18:33:21 +0200
The panic_print_deprecated() warning is being triggered on both read and write operations to the panic_print parameter.
This causes spurious warnings when users run 'sysctl -a' to list all sysctl values, since that command reads /proc/sys/kernel/panic_print and triggers the deprecation notice.
Modify the handlers to only emit the deprecation warning when the parameter is actually being set:
- sysctl_panic_print_handler(): check 'write' flag before warning.
- panic_print_get(): remove the deprecation call entirely.
This way, users are only warned when they actively try to use the deprecated parameter, not when passively querying system state.
---
kernel/panic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/panic.c renamed from kernel/panic.c~panic-only-warn-about-deprecated-panic_print-on-write-access +2 -2
@@ -131,7 +131,8 @@ static int proc_taint(const struct ctl_tstatic int sysctl_panic_print_handler (const struct ctl_table *table,int write,void *buffer,size_t *lenp,loff_t *ppos) { -panic_print_deprecated (); +if (write) +panic_print_deprecated ();return proc_doulongvec_minmax (table, write, buffer, lenp, ppos); }
@@ -1014,7 +1015,6 @@ static int panic_print_set(const char *vstatic int panic_print_get (char *val,const struct kernel_param *kp) { -panic_print_deprecated ();return param_get_ulong (val, kp); }
_
Patches currently in -mm which might be from [email protected] are