if_bridge hangs ifconfig

Andrew Thompson thompsa at freebsd.org
Thu Jan 26 11:17:09 PST 2006


On Thu, Jan 26, 2006 at 04:31:48PM -0200, Thiago Damas wrote:
> 2006/1/26, Andrew Thompson <thompsa at freebsd.org>:
> > On Thu, Jan 26, 2006 at 02:49:54PM -0200, Thiago Damas wrote:
> > >   I'm having some problems using if_bridge, in FreeBSD 6.0 RELEASE.
> > >   I have the following situation:
> > >
> > >   When using the command "ifconfig bridge0 deletem vr0", its hangs,
> > > and sometimes show the error:
> > > vr0: refusing to decrement non-positive refcount 0for interface flag 256
> >
> > This has been fixed in 6-STABLE and will work in the upcomming 6.1
> > release, see the 2005/11/16 entry in
> >
> > http://www.freebsd.org/releases/6.0R/errata.html
> >
> > I would advise upgrading to RELENG_6.
> >
>
> How can I patch my system, 6.0-RELEASE for only this bug? I want to
> minimize the downtime? Its possible?
 
You can apply this patch

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_bridge.c.diff?r1=1.32&r2=1.34

If you are using modules then you dont even need to reboot, patch the
file, make+install /sys/modules/if_bridge, kldunload+kldload.


cheers,
Andrew



More information about the freebsd-hackers mailing list