[CRIU] Re: Restore failed if a process is dumped/restored in a loop

Andrey Wagin avagin at gmail.com
Thu Sep 6 10:49:30 EDT 2012


2012/9/6 Cyrill Gorcunov <gorcunov at openvz.org>:
> On Thu, Sep 06, 2012 at 06:13:48PM +0400, Andrey Wagin wrote:
>> I found that a wrong vma is marked as stack after restore
>> Before dump:
>> 7fffaddab000-7fffaddcc000 rw-p 00000000 00:00 0                          [stack]
>> After restore:
>> 00001000-00024000 rwxp 00000000 00:00 0
>>   [stack:7559]
>>
>> If a task calls any syscall, a correct vma will be marked as stack.
>> It is, because pr_regs->esp in kernel is updated on syscalls.
>
> could you please share the details on test case itself (ie what
> I need to do to re-create the situation above?)

make -C test/zdtm/live/static/ cleanout busyloop00.pid
./crtools dump -vvvv -t `cat test/zdtm/live/static/busyloop00.pid`
./crtools restore -d -vvvv -t `cat test/zdtm/live/static/busyloop00.pid`
cat /proc/`cat test/zdtm/live/static/busyloop00.pid`/maps



>
>         Cyrill


More information about the CRIU mailing list