The EFI startup code reserves PAGE_SIZE (4 KiB) per-CPU stacks, but the non-EFI path (cstart64.S) uses PER_CPU_SIZE (12 KiB). The smaller EFI stack causes stack overflows. Make the two paths consistent. Signed-off-by: Giacomo Mazzola --- x86/efi/efistart64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/efi/efistart64.S b/x86/efi/efistart64.S index 6025dc2f..0f9f23d9 100644 --- a/x86/efi/efistart64.S +++ b/x86/efi/efistart64.S @@ -8,7 +8,7 @@ /* Reserve stack in .data */ .data .align PAGE_SIZE - . = . + PAGE_SIZE * MAX_TEST_CPUS + . = . + PER_CPU_SIZE * MAX_TEST_CPUS .globl stacktop stacktop: -- 2.47.3 Amazon Web Services Development Center Germany GmbH Tamara-Danz-Str. 13 10243 Berlin Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597