* [PATCH] kexec-tools: s390: Reset kernel command line on syscall fallback
@ 2020-04-03 11:19 Petr Tesarik
2020-04-07 12:26 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Petr Tesarik @ 2020-04-03 11:19 UTC (permalink / raw)
To: Simon Horman; +Cc: kexec mailing list, Petr Tesarik
The command line is duplicated on s390 if kexec_file_load(2) is not
implemented. That's because the corresponding variable is not reset
to an empty string before re-parsing the kexec command line.
Fixes: 9cf721279f6c ("Reset getopt before falling back to legacy syscall")
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
kexec/arch/s390/kexec-image.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kexec/arch/s390/kexec-image.c b/kexec/arch/s390/kexec-image.c
index 8b39566..3c24fdf 100644
--- a/kexec/arch/s390/kexec-image.c
+++ b/kexec/arch/s390/kexec-image.c
@@ -112,6 +112,7 @@ image_s390_load(int argc, char **argv, const char *kernel_buf,
};
static const char short_options[] = KEXEC_OPT_STR "";
+ command_line[0] = 0;
ramdisk = NULL;
ramdisk_len = 0;
ramdisk_origin = 0;
--
2.16.4
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kexec-tools: s390: Reset kernel command line on syscall fallback
2020-04-03 11:19 [PATCH] kexec-tools: s390: Reset kernel command line on syscall fallback Petr Tesarik
@ 2020-04-07 12:26 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2020-04-07 12:26 UTC (permalink / raw)
To: Petr Tesarik; +Cc: kexec mailing list
On Fri, Apr 03, 2020 at 01:19:16PM +0200, Petr Tesarik wrote:
> The command line is duplicated on s390 if kexec_file_load(2) is not
> implemented. That's because the corresponding variable is not reset
> to an empty string before re-parsing the kexec command line.
>
> Fixes: 9cf721279f6c ("Reset getopt before falling back to legacy syscall")
> Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Thanks, applied.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-07 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 11:19 [PATCH] kexec-tools: s390: Reset kernel command line on syscall fallback Petr Tesarik
2020-04-07 12:26 ` Simon Horman
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.