[CRIU] [PATCH] parasite: Increase stack size up to 16K

Cyrill Gorcunov gorcunov at openvz.org
Tue Sep 18 17:07:20 EDT 2012


In commit 97cfb707 we extended scm_fdset structure
up to 7K thus we need to increase the parasite stack
size enough to hold it. It was not noticed simply because
we were poking arguments area of memory.

The memory map of args and stack for parasite look like

  +-----------+   min address
  |           | |
  | arguments | v (8K)
  |           |
  +-----------+
  |           |
  |   stack   | ^ (16K)
  |           | |
  +-----------+   max address

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/parasite.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/parasite.h b/include/parasite.h
index 259dfef..0f77d61 100644
--- a/include/parasite.h
+++ b/include/parasite.h
@@ -1,7 +1,7 @@
 #ifndef CR_PARASITE_H_
 #define CR_PARASITE_H_
 
-#define PARASITE_STACK_SIZE	2048
+#define PARASITE_STACK_SIZE	(16 << 10)
 #define PARASITE_ARG_SIZE	8196
 
 #define PARASITE_MAX_SIZE	(64 << 10)
-- 
1.7.7.6



More information about the CRIU mailing list