[CRIU] [PATCH 21/21] restore: fix size of stack for sigframe
Andrey Vagin
avagin at openvz.org
Fri May 24 08:20:24 EDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
include/restorer.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/restorer.h b/include/restorer.h
index 9d347f7..ba68b45 100644
--- a/include/restorer.h
+++ b/include/restorer.h
@@ -12,6 +12,7 @@
#include "lock.h"
#include "util.h"
#include "crtools.h"
+#include "asm/restorer.h"
#include "protobuf/mm.pb-c.h"
#include "protobuf/vma.pb-c.h"
@@ -34,7 +35,8 @@ typedef long (*thread_restore_fcall_t) (struct thread_restore_args *args);
*/
#define RESTORE_ARGS_SIZE (512)
#define RESTORE_STACK_REDZONE (128)
-#define RESTORE_STACK_SIGFRAME (KILO(16))
+/* sigframe should be aligned on 64 byte for x86 and 8 bytes for arm */
+#define RESTORE_STACK_SIGFRAME ALIGN(sizeof(struct rt_sigframe) + SIGFRAME_OFFSET, 64)
#define RESTORE_STACK_SIZE (KILO(32))
#define RESTORE_HEAP_SIZE (KILO(16))
--
1.8.2
More information about the CRIU
mailing list