Skip to contentSkip to conversation

kexec-tools: s390: Reset kernel command line on syscall fallback

PATCH Applied Petr Tesarik 2 participants 2 messages Apr 3, 2020 – Apr 7, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec-tools: s390: Reset kernel command line on syscall fallback

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")
---
 kexec/arch/s390/kexec-image.c | 1 +
 1 file changed, 1 insertion(+)
kexec/arch/s390/kexec-image.c +1 -0
index 8b39566..3c24fdf 100644
@@ -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;
Signature · 7 lines
2.16.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 6 lines · 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")

Thanks, applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec