[CRIU] Fwd: Re: dump_sk_queue sk queue dumping done if ret == 0

Ruslan Kuprieiev kupruser at gmail.com
Sun Aug 25 03:42:03 EDT 2013




-------- Original Message --------
Subject: 	Re: [CRIU] dump_sk_queue sk queue dumping done if ret == 0
Date: 	Sun, 25 Aug 2013 11:29:47 +0400
From: 	Ruslan Kuprieiev <kupruser at gmail.com>
To: 	Pavel Emelyanov <xemul at parallels.com>
CC: 	criu at openvz.org



On 08/25/2013 11:04 AM, Pavel Emelyanov wrote:
> On 08/25/2013 02:29 AM, Ruslan Kuprieiev wrote:
>> Hi all!
>>
>> dump_sk_queue() assumes end  of queue if EAGAIN is returned, but kernel
>> in net/unix/af_unix.c:unix_stream_recvmsg() returns 0, if second end of
>> socket is closed.
>> This cause running into loop and writing zeros to img, when dumping pair
>> of sockets, where data is stored and one side if closed.
>>
>> Signed-off-by: Ruslan Kuprieiev kupruser at gmail.com
>>
>>
>
> I need the respective test in zdtm/ and fixes for restore.
Add test for data lost to sockets02.c or add it as separate file?

What fixes for restore?
I tried to c\r program with data in half closed socket pair and it works.

-----------

Sorry, my mistake, it does not work.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130825/8c07f43d/attachment.html>


More information about the CRIU mailing list