[CRIU] [PATCH 07/16] parasite: Add run-time stack alignment
Cyrill Gorcunov
gorcunov at openvz.org
Mon Feb 13 14:26:30 EST 2012
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
parasite.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/parasite.c b/parasite.c
index 32f2a84..b74d381 100644
--- a/parasite.c
+++ b/parasite.c
@@ -443,6 +443,8 @@ static void __parasite_head __used parasite_head(void)
*/
asm volatile("parasite_head_start: \n"
"leaq parasite_stack(%rip), %rsp \n"
+ "subq $16, %rsp \n"
+ "andq $~15, %rsp \n"
"pushq $0 \n"
"movq %rsp, %rbp \n"
"movl parasite_cmd(%rip), %edi \n"
--
1.7.7.6
More information about the CRIU
mailing list