[CRIU] Using annobin breaks CRIU

Dmitry Safonov 0x7f454c46 at gmail.com
Wed Jul 11 16:42:04 MSK 2018


2018-07-11 7:15 GMT+01:00 Adrian Reber <adrian at lisas.de>:
> Just wanted to share that CRIU is broken on Fedora rawhide when build as
> a package. Fedora enabled annobin (https://fedoraproject.org/wiki/Changes/Annobin)
> and CRIU fails with:
>
> (00.006779) Putting tsock into pid 36
> (00.006961) Wait for parasite being daemonized...
> (00.006981) Wait for ack 2 on daemon socket
> pie: 36: Running daemon thread leader
> pie: 36: __sent ack msg: 2 2 0
> pie: 36: Daemon waits for command
> (00.007015) Fetched ack: 2 2 0
> (00.007023) Parasite 36 has been switched to daemon mode
> (00.007028) vdso: vDSO hint is reliable - omit checking
> (00.007041) Sent msg to daemon 74 0 0
> (00.007047) Wait for ack 74 on daemon socket
> pie: 36: __fetched msg: 74 0 0
> (00.007079) Error (criu/parasite-syscall.c:92): si_code=4 si_pid=36
> si_status=11
> (00.007086) Error (criu/parasite-syscall.c:100): 36 was stopped by 11
> unexpectedly
>
> I am now setting '%undefine _annotated_build' in CRIU's Fedora SPEC file
> to build the RPM and CRIU seems to be working again.

Will guess is that it adds some annotation to parasite's PIE binary.
So, we can annotate criu binary, but surely not PIE's.

-- 
             Dmitry


More information about the CRIU mailing list