kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1

2016-03-23 23:33:32 35635 4

用ssh登录阿里云centos7主机,过一会儿会自动出现以下信息:

[root@i1234567890 ~]# 
Message from syslogd@i1234567890 at Mar 23 22:45:52 ...
 kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1

在这个信息中,我这里按ctrl+c可以退回到[root@i1234567890 ~]# 提示符。想问问这个信息是什么意思?

百度了一下,好像遇到此问题的人挺多:
http://serverfault.com/questions/650377/linux-kernel-bug-w-netns-and-or-xen-guest-unregister-netdevice-waiting-for
https://github.com/docker/docker/issues/5618
但从两个帖子中没看到解决办法,只说这是bug?

操作系统信息如下:

发行版本:

[root@i1234567890 ~]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:    CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:    7.2.1511
Codename:    Core

内核版本:

[root@i1234567890 ~]# uname -a
Linux i1234567890 4.4.5-1.el7.elrepo.x86_64 #1 SMP Thu Mar 10 11:45:51 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

好像跟Docker有关,Docker版本:

[root@i1234567890 ~]# docker version  
Client:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:39:25 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:39:25 2016
 OS/Arch:      linux/amd64
取消 提交回答
全部回答(4)
  • think_time
    2019-07-17 18:35:32

    kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
    SOLUTION VERIFIED - Updated July 6 2017 at 10:42 AM - English
    Environment
    Red Hat Enterprise Linux 7.4 or earlier
    TCP connection over loopback interface lo
    Issue
    kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
    Above message is logged constantly on console or in dmesg or /var/log/messages file or in systemd journal
    Resolution
    Update to RHEL 7.5 when available.

    Root Cause
    A bug resulted in the loopback device having a reference count which was increased but never decreased.

    This was resolved by upstream patch tcp: reset sk_rx_dst in tcp_disconnect() in Linux Kernel v4.12 and backported to RHEL 7.5 on Red Hat Private Bug 1467770.

    Diagnostic Steps
    Use the reproducer described at unregister_netdevice: waiting for lo to become free. Usage count = 1

    Run it in a netns once and delete the netns:

    Raw
    make tcp-bug
    ip netns add test1
    ip netns exec test1 ip link set dev lo up
    ip netns exec test1 ./tcp-bug
    ip netns del test1
    In the error condition kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 is printed on console and in dmesg.

    In the working condition, no error is printed and the netns is successfully deleted.

    0 0
  • 分生
    2019-07-17 18:35:32

    求解决....

    0 0
  • mengz
    2019-07-17 18:35:32

    我也遇到一样的问题,

    $ cat /etc/os-release 
    NAME="Ubuntu"
    VERSION="14.04.5 LTS, Trusty Tahr"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 14.04.5 LTS"
    VERSION_ID="14.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    
    $ uname -a
    Linux yt-imd-03 4.4.0-46-generic #67~14.04.1-Ubuntu SMP Fri Oct 21 16:04:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    
    $ docker --version
    Docker version 1.12.2, build bb80604

    内存很快被撑满,然后无法ssh上去,系统就挂住了,使用web 控制打开,报这个错

    0 0
  • 小易1246
    2019-07-17 18:35:32

    其他服务器也有这种情况吗

    0 0
添加回答
相关问答

29

回答

云计算之路:为什么要选择云计算

cnblogs 2013-03-27 10:22:27 143100浏览量 回答数 29

162

回答

惊喜翻倍:免费ECS+免费环境配置~!(ECS免费体验6个月活动3月31日结束)

豆妹 2014-10-29 17:52:21 226177浏览量 回答数 162

145

回答

【新手入门】云服务器linux使用手册

fanyue88888 2012-11-26 17:14:18 157709浏览量 回答数 145

18

回答

阿里云开放端口权限

xcxx 2016-07-20 15:03:33 646816浏览量 回答数 18

38

回答

安全组详解,新手必看教程

我的中国 2017-11-30 15:23:46 259850浏览量 回答数 38

294

回答

Linux Bash严重漏洞修复紧急通知(已全部给出最终修复方案)

qilu 2014-09-25 13:26:50 434592浏览量 回答数 294

82

回答

OSS入门教程

belle.zhoux 2014-07-07 17:14:27 151470浏览量 回答数 82

249

回答

阿里云LNAMP(Linux + Nginx + Apache + MySQL + PHP)环境一键安装脚本

云代维 2014-02-14 15:26:06 305648浏览量 回答数 249

40

回答

阿里云ecs从购买到环境搭建和建站!!(phpstudy一件包)

梦丫头 2014-07-29 20:51:49 162525浏览量 回答数 40

24

回答

【精品问答】python技术1000问(1)

问问小秘 2019-11-15 13:25:00 475710浏览量 回答数 24
+关注
0
文章
18
问答
问答排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载