[CRIU] collecting unix sockets

Pavel Emelyanov xemul at parallels.com
Thu Jun 11 09:29:41 PDT 2015


On 06/10/2015 12:03 AM, CRIU criu wrote:
> Also, what is needed to dump SOCK_SEQPACKET type external sockets

The same as for stream sockets -- we need to ensure cooperation from the peer
process as it would see the EOF on disconnected socket.

> In dump_external_sockets(), check "peer->type != SOCK_DGRAM" fails for me.
> 
> Looks like run_plugins(DUMP_UNIX_SK) return -ENOTSUP.
> 
> 
> On Tue, Jun 9, 2015 at 1:50 PM, CRIU criu <criuport at gmail.com <mailto:criuport at gmail.com>> wrote:
> 
>     Hi,
> 
>     In collect_one_unixsk(), CRIU checks for ui->ue->name.len >= UNIX_PATH_MAX
> 
>     However, the kernel checks for len <= sizeof(short) || len > sizeof(*sunaddr)  in unix_mkname() for unix_stream_connect() type sockets.
> 
>     Because of the mismatch, I see "Can't connect %#x socket" error in post_open_unix_sk()
> 
>     I'm working with CRIU v1.5.2, so please let me know if this has changed in the future versions. Thanks!
> 
>     -Lilo
> 
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 



More information about the CRIU mailing list