[CRIU] netlink error EBADF?

Pavel Emelyanov xemul at parallels.com
Thu Nov 19 05:53:07 PST 2015


On 11/19/2015 04:22 PM, Cyrill Gorcunov wrote:
> On Thu, Nov 19, 2015 at 04:06:48PM +0300, Pavel Emelyanov wrote:
>> On 11/19/2015 03:24 AM, Tycho Andersen wrote:
>>> Hi guys,
>>>
>>> With current trunk, I'm getting an error:
>>>
>>> (00.033218)      1: Restoring link eth0 type 2
>>> (00.033221)      1: Restoring netdev eth0 idx 152
>>> (00.033224)      1: Restore ll addr (00:../6) for device
>>> (00.033237)      1: Warn  (libnetlink.c:65): ERROR -9 reported by netlink
>>> (00.033242)      1: Error (net.c:565): Can't restore link
>>> (00.060517) Error (cr-restore.c:1257): 18005 exited, status=1
>>>
>>> I've looked through the kernel source, and it's not obvious to me where netlink
>>> would send an EBADF. Any ideas?
>>
>> Maybe it's due to not-yet-applied "[PATCH] net: Move node's net fd reference 
>> into service fd"?
> 
> yes. the kernel tries to fetch peers' namespace from file
> descriptor which we've managed to close too early.

OK, that fix is out in the repo :)

-- Pavel



More information about the CRIU mailing list