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

Andrey Vagin avagin at openvz.org
Fri Dec 21 08:19:44 EST 2012


It should be bigger than CONFIG_LSM_MMAP_MIN_ADDR.
(Low address space for LSM to protect from user allocation)

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 1d5224e..ce79f02 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1316,7 +1316,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 * 10; /* CONFIG_LSM_MMAP_MIN_ADDR */
 
 	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