[CRIU] [PATCH 36/44] cr-restore.c: use TASK_SIZE instead of TASK_SIZE_MAX.
Pavel Emelyanov
xemul at parallels.com
Wed Jan 9 06:45:20 EST 2013
On 01/07/2013 07:05 PM, Alexander Kartashov wrote:
Some explanation please.
>
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
> ---
> cr-restore.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/cr-restore.c b/cr-restore.c
> index 77482b9..0a73a07 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -1245,7 +1245,6 @@ int cr_restore_tasks(pid_t pid, struct cr_options *opts)
> return restore_root_task(root_item, opts);
> }
>
> -#define TASK_SIZE_MAX ((1UL << 47) - PAGE_SIZE)
> static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
> struct list_head *self_vma_list, long vma_len)
> {
> @@ -1253,7 +1252,7 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
> long prev_vma_end = 0;
> struct vma_area end_vma;
>
> - end_vma.vma.start = end_vma.vma.end = TASK_SIZE_MAX;
> + end_vma.vma.start = end_vma.vma.end = TASK_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);
>
More information about the CRIU
mailing list