xen/pvh: increase early stack size
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 9 Oct 2018 10:32:37 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:15:02 +0000 (11:15 -0800)
commit 7deecbda3026f5e2a8cc095d7ef7261a920efcf2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/xen-pvh.S

index 5d7554c..7ecbd3d 100644 (file)
@@ -178,7 +178,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,