Skip to content

Commit 182ddd1

Browse files
jgross1Ingo Molnar
authored andcommitted
x86/boot: Clear RSDP address in boot_params for broken loaders
Gunnar Krueger reported a systemd-boot failure and bisected it down to: e6e094e ("x86/acpi, x86/boot: Take RSDP address from boot params if available") In case a broken boot loader doesn't clear its 'struct boot_params', clear rsdp_addr in sanitize_boot_params(). Reported-by: Gunnar Krueger <taijian@posteo.de> Tested-by: Gunnar Krueger <taijian@posteo.de> Signed-off-by: Juergen Gross <jgross@suse.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bp@alien8.de Cc: sstabellini@kernel.org Fixes: e6e094e ("x86/acpi, x86/boot: Take RSDP address from boot params if available") Link: http://lkml.kernel.org/r/20181203103811.17056-1-jgross@suse.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 2595646 commit 182ddd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/include/asm/bootparam_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static void sanitize_boot_params(struct boot_params *boot_params)
3636
*/
3737
if (boot_params->sentinel) {
3838
/* fields in boot_params are left uninitialized, clear them */
39+
boot_params->acpi_rsdp_addr = 0;
3940
memset(&boot_params->ext_ramdisk_image, 0,
4041
(char *)&boot_params->efi_info -
4142
(char *)&boot_params->ext_ramdisk_image);

0 commit comments

Comments
 (0)