#20815: [netifd] Restart network, continuously printing "waiting for br-lan to
become free. Usage count = 2"
------------------------+-----------------------------------
 Reporter:  wendy.wu@…  |      Owner:  developers
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:  Netifd Implementation
Component:  packages    |    Version:  Trunk
 Keywords:              |
------------------------+-----------------------------------
 The issue can be reproduced only in IPv6 environment and br-lan get ipv6
 global address.

 "ifdown lan" or "/etc/init.d/network restart" or "reboot" can reproduce
 the "refcount=2" issue.

 But the issue can't be reproduced when first ifdown "wan" interface, then
 ifdown "lan" interface.
 And the issue can't be reproduced when delete "wan" route manually.
 I try to track the issue, when I delete "wan" the following two route ,
 the "br-lan" reference count will be released.

 4084:6666:0:3be::/64 from 4084:6666:0:3be::/64 dev pppoe-wan  proto static
 metric 256
 4084:6666:0:3be::/64 dev pppoe-wan  proto static  metric 256


 The issue seems related to route of "wan" and "lan".
 Could you please give some suggestions?
 Thanks a lot.


 The following is the logs when reboot system,

 root@OpenWrt:~# reboot
 root@OpenWrt:~# [ 8924.082000] Unexpected close, not stopping watchdog!
 Watchdog was terminated due to requested system reboot.
 [ 8924.415000] br-lan: port 2(eth1) entered disabled state
 [ 8924.463000] device eth0 left promiscuous mode
 [ 8924.476000] br-lan: port 1(eth0) entered disabled state
 [ 8924.517000] ADDRCONF(NETDEV_UP): eth0: link is not ready
 [ 8924.525000] device eth1 left promiscuous mode
 [ 8924.538000] br-lan: port 2(eth1) entered disabled state
 [ 8924.570000] ADDRCONF(NETDEV_UP): eth1: link is not ready
 [ 8924.580000] device eth2 left promiscuous mode
 [ 8924.589000] br-lan: port 3(eth2) entered disabled state
 [ 8924.623000] ADDRCONF(NETDEV_UP): eth2: link is not ready
 [ 8924.634000] device eth3 left promiscuous mode
 [ 8924.638000] br-lan: port 4(eth3) entered disabled state
 [ 8924.694000] ADDRCONF(NETDEV_UP): eth3: link is not ready
 [ 8934.796000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8944.876000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8954.956000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8965.010000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8975.058000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8985.105000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 8995.152000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 9005.199000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 9015.246000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 9025.293000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 9035.352000] unregister_netdevice: waiting for br-lan to become free.
 Usage count = 2
 [ 9043.326000] watchdog will restart system
 [ 9043.329000] Kernel bug detected1:

 The following is the network config in /etc/config/network,

 config interface 'loopback'
         option ifname 'lo'
         option proto 'static'
         option ipaddr '127.0.0.1'
         option netmask '255.0.0.0'

 config globals 'globals'
         option default_ps '0'

 config interface 'lan'
         option ifname 'eth0 eth1 eth2 eth3'
         option type 'bridge'
         option proto 'static'
         option netmask '255.255.255.0'
         option ipaddr '192.168.1.254'
         option ip6assign '64'
         option force_link '0'

 config switch 'bcmsw'
         option reset '1'
         option enable_vlan '0'
         option qosimppauseenable '1'

 config interface 'wan'
         option proto 'pppoe'
         option keepalive '5,10'
         option pppoe_backoff '16,16'
         option auto '1'
         option username 'test'
         option password 'test'
         option ifname 'atm_8_35'

 config interface 'wan6'
         option ifname '@wan'
         option proto 'dhcpv6'
         option reqopts '12 21 22 23 24 25 31 56 64 67 82 83'
         option noslaaconly '1'

 The following is the route and wan6 infomation,
 root@OpenWrt:~# ip -6 route
 default from 4084:6666:0:3be::/64 via fe80::2a0:a50f:fc76:b50a dev pppoe-
 wan  proto static  metric 512
 default from 4084:6666:0:3bf::/64 via fe80::2a0:a50f:fc76:b50a dev pppoe-
 wan  proto static  metric 512
 4084:6666:0:3be::/64 from 4084:6666:0:3be::/64 dev pppoe-wan  proto static
 metric 256
 4084:6666:0:3be::/64 dev pppoe-wan  proto static  metric 256
 4084:6666:0:3bf::/64 dev br-lan  proto static  metric 1024
 unreachable 4084:6666:0:3bf::/64 dev lo  proto static  metric 2147483647
 error -128
 fe80::/64 dev wl0  proto kernel  metric 256
 fe80::/64 dev br-lan  proto kernel  metric 256
 fe80::/64 dev atm_8_35  proto kernel  metric 256
 fe80::/64 dev pppoe-wan  proto kernel  metric 256
 fe80::/10 dev pppoe-wan  metric 1
 fe80::/10 dev pppoe-wan  proto kernel  metric 256
 root@OpenWrt:~#
 root@OpenWrt:~# ifstatus wan6
 {
         "up": true,
         "pending": false,
         "available": true,
         "autostart": true,
         "uptime": 83,
         "l3_device": "pppoe-wan",
         "proto": "dhcpv6",
         "device": "pppoe-wan",
         "metric": 0,
         "delegation": true,
         "ipv4-address": [

         ],
         "ipv6-address": [
                 {
                         "address": "4084:6666:0:3be:2cda:3f58:2f93:99fe",
                         "mask": 64,
                         "preferred": 604745,
                         "valid": 2591945
                 }
         ],
         "ipv6-prefix": [
                 {
                         "address": "4084:6666:0:3bf::",
                         "mask": 64,
                         "preferred": 86316,
                         "valid": 86316,
                         "class": "wan6",
                         "assigned": {
                                 "lan": {
                                         "address": "4084:6666:0:3bf::",
                                         "mask": 64
                                 }
                         }
                 }
         ],
         "ipv6-prefix-assignment": [

         ],
         "route": [
                 {
                         "target": "4084:6666:0:3be::",
                         "mask": 64,
                         "nexthop": "::",
                         "metric": 256,
                         "valid": 2591945,
                         "source": "::\/0"
                 },
                 {
                         "target": "4084:6666:0:3be::",
                         "mask": 64,
                         "nexthop": "::",
                         "metric": 256,
                         "valid": 2591945,
                         "source": "4084:6666:0:3be::\/64"
                 },
                 {
                         "target": "::",
                         "mask": 0,
                         "nexthop": "fe80::2a0:a50f:fc76:b50a",
                         "metric": 512,
                         "valid": 1745,
                         "source":
 "4084:6666:0:3be:2cda:3f58:2f93:99fe\/64"
                 },
                 {
                         "target": "::",
                         "mask": 0,
                         "nexthop": "fe80::2a0:a50f:fc76:b50a",
                         "metric": 512,
                         "valid": 1745,
                         "source": "4084:6666:0:3bf::\/64"
                 }
         ],
         "dns-server": [
                 "2013:a6a6:4086:1::2"
         ],
         "dns-search": [

         ],
         "inactive": {
                 "ipv4-address": [

                 ],
                 "ipv6-address": [

                 ],
                 "route": [

                 ],
                 "dns-server": [

                 ],
                 "dns-search": [

                 ]
         },
         "data": {
                 "passthru": "001700102013a6a6408600010000000000000002"
         }
 }
 root@OpenWrt:~#

--
Ticket URL: <https://dev.openwrt.org/ticket/20815>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to