OSDN Git Service

xen/pvh: increase early stack size
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 9 Oct 2018 10:32:37 +0000 (12:32 +0200)
committerJuergen Gross <jgross@suse.com>
Wed, 24 Oct 2018 08:18:28 +0000 (10:18 +0200)
While booting on an AMD EPYC box the stack canary would detect stack
overflows when using the current PVH early stack size (256). Switch to
using the value defined by BOOT_STACK_SIZE, which prevents the stack
overflow.

Cc: <stable@vger.kernel.org> # 4.11
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/xen-pvh.S

index b0e4715..1f8825b 100644 (file)
@@ -170,7 +170,7 @@ canary:
        .fill 48, 1, 0
 
 early_stack:
-       .fill 256, 1, 0
+       .fill BOOT_STACK_SIZE, 1, 0
 early_stack_end:
 
        ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY,