Re: kernel hangs when trying to remove a bridge



On Sat, 29 Jul 2006 16:42:04 +0100
Rodrigo Ventura <yoda@xxxxxxxxxxxxxx> wrote:


I'm using kernel 2.6.16 (-gentoo-r13 actually). A bridge iface br0 is setup
using eth1 and eth0.1 (VLAN) as slaves. To bring br0, what I do is to remove
the slaves from the bridge first, "ip link set dev br0 down" next, followed
by the brctl command to remove the bridge. What happens is that it seems it
tryes to destroy the bridge iface, and then hangs, with dmesg complaining,
periodically, about once a second, something like:

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

I say it partially hangs because commands like ifconfig hang (ps state=Disk
busy)...
To reboot the machine, a HARD reset is required, since, the shutdown process
hangs...


Some broken protocol in the kernel, incremented a refcount but forgot
to cleanup when notified on device removal.

There was a bug in the VLAN code that did that, not sure which version
it was fixed in.

Do you have IPV6 installed (as a module)?
In some kernel versions, IPV6 has a problem with device ref counting, and
leaves a dangling reference.


--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • kernel hangs when trying to remove a bridge
    ... by the brctl command to remove the bridge. ... waiting for br0 to become free. ... Usage count = 1 ...
    (Linux-Kernel)
  • Re: Wireless to wired bridge: apparently not going to work?
    ... into the equivalent of an $80 wireless adapter. ... brctl addif br0 eth0 ... The bridge then gets an IP. ... I can ping the internets ...
    (comp.os.linux.networking)
  • ifupdown locking up when bringing down bridge devices
    ... bringing down br0 (bridge device via bridge-utils, ... This is occuring when "brctl delbr br0" is ran from the ... it seems to be something about bringing the interface full down ... These last two entries are needed since the if-post-down.d/bridge script ...
    (Debian-User)
  • (no subject)
    ... bringing down br0 (bridge device via bridge-utils, ... This is occuring when "brctl delbr br0" is ran from the ... it seems to be something about bringing the interface full down ... These last two entries are needed since the if-post-down.d/bridge script ...
    (Debian-User)
  • Re: bridge and ip adresses forwarding
    ... bridge is between firewall and local lan. ... I added alias for br0 - and configured address 192.168.2.100. ... But the bridge is not accepting theese packets - it forwards them like all other packets. ... The bridge acts like a logical ethernet switch and by default forwards ethernet packets based upon their destination MAC address, not their embedded destination IP address. ...
    (comp.os.linux.networking)