[CRIU] [PATCH 1/4] crtools: change the minimal address for the restorer blob

Andrey Vagin avagin at openvz.org
Fri Dec 21 09:33:52 EST 2012


It should be bigger than CONFIG_LSM_MMAP_MIN_ADDR.

v2: set a correct value

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-restore.c b/cr-restore.c
index aa72e95..bf69881 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1262,7 +1262,7 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
 	struct vma_area end_vma;
 
 	end_vma.vma.start = end_vma.vma.end = TASK_SIZE_MAX;
-	prev_vma_end = PAGE_SIZE;
+	prev_vma_end = PAGE_SIZE * 0x10; /* CONFIG_LSM_MMAP_MIN_ADDR=65536 */
 
 	s_vma = list_first_entry(self_vma_list, struct vma_area, list);
 	t_vma = list_first_entry(tgt_vma_list, struct vma_area, list);
-- 
1.7.11.7



More information about the CRIU mailing list