[CRIU] [PATCH 1/4] crtools: change the minimal address for the restorer blob
Andrey Wagin
avagin at gmail.com
Fri Dec 21 08:42:22 EST 2012
2012/12/21 Cyrill Gorcunov <gorcunov at openvz.org>:
> 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?
I want to say 0x10;). Thanks.
>
> Cyrill
More information about the CRIU
mailing list