[merged mm-nonmm-stable] kernel-params-fix-a-pr_debug-%p-in-parse_one.patch removed from -mm tree
Andrew Morton <[email protected]> Mon, 03 Aug 2026 21:04:46 -0700
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The quilt patch titled
Subject: kernel/params: fix a pr_debug(" %p ") in parse_one()
has been removed from the -mm tree. Its filename was
kernel-params-fix-a-pr_debug-%p-in-parse_one.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jim Cromie <[email protected]>
Subject: kernel/params: fix a pr_debug(" %p ") in parse_one()
Date: Thu, 18 Jun 2026 13:07:15 -0600
Inside parse_one(), the core parameter-parsing engine prints the address
of the parameter-set callback function using %p: pr_debug("handling %s
with %p\n", param, params[i].ops->set);
Since the string value of the parameter being parsed (val) is already
available, print the parameter name and its value instead, and avoid
tainting the kernel by exposing a kernel-ptr.
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Jim Cromie <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
kernel/params.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/kernel/params.c~kernel-params-fix-a-pr_debug-%p-in-parse_one
+++ a/kernel/params.c
@@ -136,8 +136,8 @@ static int parse_one(char *param,
if (!val &&
!(params[i].ops->flags & KERNEL_PARAM_OPS_FL_NOARG))
return -EINVAL;
- pr_debug("handling %s with %p\n", param,
- params[i].ops->set);
+ pr_debug("handling %s with value '%s'\n", param,
+ val ? val : "no-arg");
kernel_param_lock(params[i].mod);
if (param_check_unsafe(¶ms[i]))
err = params[i].ops->set(val, ¶ms[i]);
_
Patches currently in -mm which might be from [email protected] are