Ethernet Bridge development
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Robert Scott <rbscott@axentra.net>
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] unregister_netdevice: waiting for br0 to become free. Usage count = 1 (2.6.12.3)
Date: Wed, 31 Aug 2005 21:26:27 -0700	[thread overview]
Message-ID: <431682F3.2030103@candelatech.com> (raw)
In-Reply-To: <8189B9F5-DF6E-4032-8D2D-D5301A02A081@axentra.net>

Robert Scott wrote:
> Hello,
> 
> I know that this bug has been discussed before at length on this  
> mailing list, but previous post seemed to indicate that it was fixed  
> before kernel 2.6.12.  I am still seeing this occasionally in kernel  
> 2.6.12.3.  The system is running knoppix, and IPV6 is not compiled  into 
> the kernel(other posts mentioned numerous problems with the IPV6  
> code).  But every so often, when bringing down the bridge (it doesn't  
> happen every time), the process hangs, and the following message  
> appears in dmesg repeatedly:
> 
> 'unregister_netdevice: waiting for br0 to become free. Usage count = 1'

I have found an appearant leak of a route object, which holds a reference
to a device.  I reproduced in both 2.6.11 and 2.6.13 using 802.1Q VLANs.
I have a patch that will print out the place of the leaked reference
against 2.6.13.

http://www.candelatech.com/oss/rfcnt.patch

Enable the feature in the Networking section of Kconfig.

If you can reproduce with this patch in place, you will get a file and line number
for the leak..please CC me.  I'm going to try to debug the leak, but I
could definately use some help...

> None of the processes involved can be killed, and an attempt to run  an 
> ifconfig results in a process that is also waiting forever.  At  this 
> point the box must be rebooted forcefully.
> 
> Two questions.
> 1. In a previous post, someone mentioned one solution was to  commenting 
> out the check that is hanging in the kernel.   Does this  check 
> preventing something terrible from happening(i assumed that it  does), 
> or is it safe to remove it.

This would be bad...could lead to memory corruption.

> 2. Any ideas of something to try in order to make this repeatable?

I have a complex application with a complex script to drive it that reproduces
the problem within an hour...I haven't found a simpler way....

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2005-09-01  4:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-01  2:04 [Bridge] unregister_netdevice: waiting for br0 to become free. Usage count = 1 (2.6.12.3) Robert Scott
2005-09-01  4:26 ` Ben Greear [this message]
2005-09-01  4:37 ` Stephen Hemminger
2005-09-01  5:12   ` Ben Greear
2005-09-01  6:33   ` Robert Scott
2005-09-01 16:24     ` Stephen Hemminger
2005-09-01 19:04   ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2005-09-02  7:37 Louis Croisez
2015-06-26 12:04 Jorge Dominguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=431682F3.2030103@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=bridge@lists.osdl.org \
    --cc=rbscott@axentra.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox