linux_dsm_epyc7002/arch
Ard Biesheuvel 12dc9e154d efi/libstub: Fix boot argument handling in mixed mode entry code
The mixed mode refactor actually broke mixed mode by failing to
pass the bootparam structure to startup_32(). This went unnoticed
because it apparently has a high tolerance for being passed random
junk, and still boots fine in some cases. So let's fix this by
populating %esi as required when entering via efi32_stub_entry,
and while at it, preserve the arguments themselves instead of their
address in memory (via the stack pointer) since that memory could
be clobbered before we get to it.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Matthew Garrett <mjg59@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: https://lkml.kernel.org/r/20200103113953.9571-2-ardb@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2020-01-10 18:55:01 +01:00
..
alpha mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
arc Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
arm Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
arm64 Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
c6x mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
csky mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
h8300 mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
hexagon Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
ia64 Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
m68k mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
microblaze mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
mips Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
nds32 mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
nios2 Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
openrisc mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
parisc Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
powerpc Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
riscv Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
s390 Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
sh Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
sparc Merge branch 'x86/mm' into efi/core, to pick up dependencies 2020-01-10 18:53:14 +01:00
um mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
unicore32 mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
x86 efi/libstub: Fix boot argument handling in mixed mode entry code 2020-01-10 18:55:01 +01:00
xtensa mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
.gitignore
Kconfig arch/Kconfig: fix indentation 2019-12-04 19:44:12 -08:00