mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + init-make-unknown-command-line-param-message-clearer.patch added to -mm tree
@ 2021-10-13 23:10 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-10-13 23:10 UTC (permalink / raw)
  To: ahalaney, bp, mm-commits, rdunlap, rostedt


The patch titled
     Subject: init: make unknown command line param message clearer
has been added to the -mm tree.  Its filename is
     init-make-unknown-command-line-param-message-clearer.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/init-make-unknown-command-line-param-message-clearer.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/init-make-unknown-command-line-param-message-clearer.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Andrew Halaney <ahalaney@redhat.com>
Subject: init: make unknown command line param message clearer

The prior message is confusing users, which is the exact opposite of the
goal.  If the message is being seen, one of the following situations is
happening:

 1. the param is misspelled
 2. the param is not valid due to the kernel configuration
 3. the param is intended for init but isn't after the '--'
    delineator on the command line

To make that more clear to the user, explicitly mention "kernel command
line" and also note that the params are still passed to user space to
avoid causing any alarm over params intended for init.

Link: https://lkml.kernel.org/r/20211013223502.96756-1-ahalaney@redhat.com
Fixes: 86d1919a4fb0 ("init: print out unknown kernel parameters")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 init/main.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/init/main.c~init-make-unknown-command-line-param-message-clearer
+++ a/init/main.c
@@ -923,7 +923,9 @@ static void __init print_unknown_bootopt
 	for (p = &envp_init[2]; *p; p++)
 		end += sprintf(end, " %s", *p);
 
-	pr_notice("Unknown command line parameters:%s\n", unknown_options);
+	/* Start at unknown_options[1] to skip the initial space */
+	pr_notice("Unknown kernel command line parameters \"%s\", will be passed to user space.\n",
+		&unknown_options[1]);
 	memblock_free(unknown_options, len);
 }
 
_

Patches currently in -mm which might be from ahalaney@redhat.com are

init-make-unknown-command-line-param-message-clearer.patch
init-mainc-silence-some-wunused-parameter-warnings.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-13 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 23:10 + init-make-unknown-command-line-param-message-clearer.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).