[CRIU] [PATCH 2/4] restore: Align stack to 16 bytes for arm64
Vijaya Kumar K
Vijaya.Kumar at caviumnetworks.com
Mon Dec 28 00:09:40 PST 2015
arm64 expects stack to be aligned to 16 bytes.
If stack pointer is not aligned clone system call
fails during restore.
Signed-off-by: Vijaya Kumar K <vijayak at caviumnetworks.com>
---
cr-check.c | 2 +-
cr-restore.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cr-check.c b/cr-check.c
index a3dc662..5b425f9 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -808,7 +808,7 @@ struct clone_arg {
* Reserve some space for clone() to locate arguments
* and retcode in this place
*/
- char stack[128] __attribute__((aligned (8)));
+ char stack[128] __attribute__((aligned (16)));
char stack_ptr[0];
};
diff --git a/cr-restore.c b/cr-restore.c
index 9fc1e3d..39c1b06 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1094,7 +1094,7 @@ struct cr_clone_arg {
* Reserve some space for clone() to locate arguments
* and retcode in this place
*/
- char stack[128] __attribute__((aligned (8)));
+ char stack[128] __attribute__((aligned (16)));
char stack_ptr[0];
struct pstree_item *item;
unsigned long clone_flags;
--
1.7.9.5
More information about the CRIU
mailing list