x86/boot: Clear RSDP address in boot_params for broken loaders
authorJuergen Gross <jgross@suse.com>
Mon, 3 Dec 2018 10:38:11 +0000 (11:38 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Dec 2018 10:56:37 +0000 (11:56 +0100)
commit182ddd16194cd082f25fa1b063dae3c7c5cce384
tree35dcc5ea763f432dc9da0d12c08b80af07abfa46
parent2595646791c319cadfdbf271563aac97d0843dc7
x86/boot: Clear RSDP address in boot_params for broken loaders

Gunnar Krueger reported a systemd-boot failure and bisected it down to:

  e6e094e053af75 ("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: e6e094e053af75 ("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>
arch/x86/include/asm/bootparam_utils.h