From 60595eb43254fb65619b0e9bffa8f6d0e099b33c Mon Sep 17 00:00:00 2001 From: Dmitry Safonov Date: Mon, 7 Dec 2015 17:39:00 +0300 Subject: [PATCH] criu: x86_32: change stack align to 16 bit on parasite head GCC now assumes by default that the stack is aligned to a 16-byte boundary. It's very unlikely that parasite head's first call will contain an SSE instruction which will segfault, but to be pedantically correct will lose additional 8 bytes. See also: http://sourceforge.net/p/fbc/bugs/659/ Signed-off-by: Dmitry Safonov Signed-off-by: Pavel Emelyanov --- arch/x86/parasite-head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/parasite-head.S b/arch/x86/parasite-head.S index b61b712f7..5fb00a5c8 100644 --- a/arch/x86/parasite-head.S +++ b/arch/x86/parasite-head.S @@ -22,8 +22,8 @@ END(__export_parasite_head_start) #else /* CONFIG_X86_64 */ ENTRY(__export_parasite_head_start) - subl $8, %esp - andl $~7, %esp + subl $16, %esp + andl $~15, %esp pushl $0 movl %esp, %ebp call 1f