[CRIU] collecting unix sockets
CRIU criu
criuport at gmail.com
Thu Jun 11 11:23:33 PDT 2015
So I looked at the code of the application I'm running. These are
socketpair(SOCK_SEQPACKET) . I modified the code to dump them similar to
SOCK_DGRAM. However, looks like this cannot be done. As mentioned on CRIU
wiki, because of these being nameless the check in the kernel fails.
Let me know if you need more info. Also, any pointers on how to fix this?
Thanks for your help Pavel!
On Thu, Jun 11, 2015 at 9:30 AM, Pavel Emelyanov <xemul at parallels.com>
wrote:
> On 06/09/2015 11:50 PM, CRIU criu 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()
>
> Can you shed more light on this? What's the sockets you dump and why the
> check
> for name length makes this to fail?
>
> -- Pavel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150611/f7bec7cd/attachment.html>
More information about the CRIU
mailing list