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

Cyrill Gorcunov gorcunov at openvz.org
Fri Dec 21 08:39:49 EST 2012


On Fri, Dec 21, 2012 at 05:19:44PM +0400, Andrey Vagin wrote:
> 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 */

Why 10? In defconfig it's 64K, right?

	Cyrill


More information about the CRIU mailing list