[CRIU] Re: [PATCH cr] mm: taking into account a gurad page to find a space for a restorer vma

Andrey Wagin avagin at gmail.com
Mon Sep 10 06:31:58 EDT 2012


> Wait, it seems I was rushing with my ack ;) Look, if we start substracting
> guard page at dumping time -- what we will have after a couple of c/r cycles?
> Would not this lead to situation where we expand stack manually? Every new
> c/r cycle add one page to the bottom of stack, no?
>
No, it doesn't. I check this case. For example:

strace:
mmap(0x5f4d0e0cc000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_GROWSDOWN, -1, 0) =
0x5f4d0e0cc000

/proc/PID/maps:
5f4d0e0cd000-5f4d0e0cd000 rw-p 00000000 00:00 0


More information about the CRIU mailing list