Skip to contentSkip to conversation

kernel-params-fix-a-pr_debug-%p-in-parse_one.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Aug 4

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

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.

---

 kernel/params.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/params.c renamed from kernel/params.c~kernel-params-fix-a-pr_debug-%p-in-parse_one +2 -2
@@ -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(&params[i]))
 				err = params[i].ops->set(val, &params[i]);

_

Patches currently in -mm which might be from [email protected] are