All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Steven Rostedt <rostedt@goodmis.org>, linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Masami Hiramatsu <mhiramat@kernel.org>
Subject: Re: [for-linus][PATCH 3/3] bootconfig: Fix to prevent warning message if no bootconfig option
Date: Tue, 12 May 2020 16:40:28 +0200	[thread overview]
Message-ID: <a236ad2c-ee39-f2c3-9f07-a1ed6c9bfe22@molgen.mpg.de> (raw)
In-Reply-To: <20200512132348.029291894@goodmis.org>

Dear Steven,


Am 12.05.20 um 15:23 schrieb Steven Rostedt:
> From: Masami Hiramatsu <mhiramat@kernel.org>
> 
> Commit de462e5f1071 ("bootconfig: Fix to remove bootconfig
> data from initrd while boot") causes a cosmetic regression
> on dmesg, which warns "no bootconfig data" message without
> bootconfig cmdline option.
> 
> Fix setup_boot_config() by moving no bootconfig check after
> commandline option check.
> 
> Link: http://lkml.kernel.org/r/9b1ba335-071d-c983-89a4-2677b522dcc8@molgen.mpg.de
> Link: http://lkml.kernel.org/r/158916116468.21787.14558782332170588206.stgit@devnote2

It’d be great if you could update your script to include HTTPS URLs. 
That would save one redirect.

```
$ curl -I 
http://lkml.kernel.org/r/9b1ba335-071d-c983-89a4-2677b522dcc8@molgen.mpg.de
HTTP/1.1 301 Moved Permanently
[ prevent LKML HTML mail detection ]
```

> Fixes: de462e5f1071 ("bootconfig: Fix to remove bootconfig data from initrd while boot")
> Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
> ---
>   init/main.c | 10 ++++++----
>   1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/init/main.c b/init/main.c
> index 1a5da2c2660c..5803ecb411ab 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -400,9 +400,8 @@ static void __init setup_boot_config(const char *cmdline)
>   	char *data, *copy;
>   	int ret;
>   
> +	/* Cut out the bootconfig data even if we have no bootconfig option */
>   	data = get_boot_config_from_initrd(&size, &csum);
> -	if (!data)
> -		goto not_found;
>   
>   	strlcpy(tmp_cmdline, boot_command_line, COMMAND_LINE_SIZE);
>   	parse_args("bootconfig", tmp_cmdline, NULL, 0, 0, 0, NULL,
> @@ -411,6 +410,11 @@ static void __init setup_boot_config(const char *cmdline)
>   	if (!bootconfig_found)
>   		return;
>   
> +	if (!data) {
> +		pr_err("'bootconfig' found on command line, but no bootconfig found\n");
> +		return;
> +	}
> +
>   	if (size >= XBC_DATA_MAX) {
>   		pr_err("bootconfig size %d greater than max size %d\n",
>   			size, XBC_DATA_MAX);
> @@ -446,8 +450,6 @@ static void __init setup_boot_config(const char *cmdline)
>   		extra_init_args = xbc_make_cmdline("init");
>   	}
>   	return;
> -not_found:
> -	pr_err("'bootconfig' found on command line, but no bootconfig found\n");
>   }
>   
>   #else

Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>


Kind regards,

Paul

  reply	other threads:[~2020-05-12 14:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12 13:23 [for-linus][PATCH 0/3] tracing: More fixes for 5.7 Steven Rostedt
2020-05-12 13:23 ` [for-linus][PATCH 1/3] tools/bootconfig: Fix apply_xbc() to return zero on success Steven Rostedt
2020-05-12 13:23 ` [for-linus][PATCH 2/3] tracing: Wait for preempt irq delay thread to execute Steven Rostedt
2020-05-12 13:23 ` [for-linus][PATCH 3/3] bootconfig: Fix to prevent warning message if no bootconfig option Steven Rostedt
2020-05-12 14:40   ` Paul Menzel [this message]
     [not found]   ` <0686d98b-5eba-b761-6d84-f93edfbbb5a6@molgen.mpg.de>
2020-05-12 14:41     ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a236ad2c-ee39-f2c3-9f07-a1ed6c9bfe22@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=mingo@kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.