[CRIU] size restrictions on restorer blob

Cyrill Gorcunov gorcunov at gmail.com
Wed Jul 1 13:11:31 PDT 2015


On Tue, Jun 30, 2015 at 12:04:01PM -0700, CRIU criu wrote:
>    Hi,
>    Are there any size restrictions on restorer binary blob? For restoring
>    per-thread device state, I've added code to pie/restorer.c. My code is
>    called only for main thread from __export_restore_task(). Does the code
>    layout of restorer blob make any difference? The reason I ask is because
>    sometimes (at random), I see "Thread pid mismatch" error. Thanks!
>    Without my code in restorer:
>    # ls -l pie/restorer,built-in.bin.o
>    96,392 bytes
>    With my code:
>    # ls -l pie/restorer,built-in.bin.o
>    101,148 bytes

>From a glance there is no restrictions, but better keep code as small
as possible because it must fit into existing memory map.

As to thread pid mismatch -- try to strace the restore procedure
maybe it bring some light.


More information about the CRIU mailing list