[CRIU] [crtools-bot for Cyrill Gorcunov ] parasite: Add run-time stack alignment

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 08:18:09 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 2a0cea29977c9461c6da8506c26549c683ffe8d2
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Mon Feb 13 21:22:16 2012 +0400

    parasite: Add run-time stack alignment
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 parasite.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/parasite.c b/parasite.c
index ba2bacd..a77a94f 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"


More information about the CRIU mailing list