[CRIU] [PATCH] restorer: rework unmaping old VMA-s

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 20 10:43:14 EDT 2013


On Fri, Sep 20, 2013 at 06:21:01PM +0400, Andrey Vagin wrote:
> All process VMA-s are in "premmaped area". All restorer stuff are in
> bootstap "area", so we have two areas.
> 
> So we don't need to unmap extra VMA-s one by one. We can call munmap
> three times for the region before the first area, for the hole between
> areas and for the region after the second area.
> 
> The old scheme didn't work, because the list of VMA-s can be changed
> after collecting. It can be due to memory allocations by libc or due to
> increased stack.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Looks like it should do the trick, thanks! (I was mostly worried about vdso
area but it is fine as far as i see).


More information about the CRIU mailing list