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

Andrew Vagin avagin at parallels.com
Fri Dec 21 09:31:11 EST 2012


Sorry, I forgot to update repo. I'm going to resend these patches

On Fri, Dec 21, 2012 at 06:14:09PM +0400, Andrey Vagin wrote:
> It should be bigger than CONFIG_LSM_MMAP_MIN_ADDR.
> (Low address space for LSM to protect from user allocation)
> 
> 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 8dd1886..5d494f2 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -1257,7 +1257,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