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

Pavel Emelyanov xemul at parallels.com
Sun Aug 25 03:04:32 EDT 2013


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.


More information about the CRIU mailing list