netdev
[Top] [All Lists]

Re: IPv6 "badness" in recent releases

To: jgarzik@xxxxxxxxx (Jeff Garzik)
Subject: Re: IPv6 "badness" in recent releases
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 07:35:17 +1100
Cc: yoshfuji@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, acme@xxxxxxxxxxxxxxxx
In-reply-to: <4197AC20.6020707@pobox.com>
Organization: Core
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686))
Jeff Garzik <jgarzik@xxxxxxxxx> wrote:
> 
> I login (same machine that used to have the "BUG: dst underflow" 
> problems) and see
> 
> [first one I can find in log]
> Badness in dst_release at include/net/dst.h:149

Thanks.  This is what "dst underflow" looks like in the new kernels.
Unfortunately whatever caused this has already happened so we can
only guess about where the bug is.

Could you please apply this patch and see if the warning triggers
before the underflows start coming in? We already know that if it
does then it can cause underflows but I want to make sure that
this is what's causing your problems.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
===== net/ipv6/addrconf.c 1.115 vs edited =====
--- 1.115/net/ipv6/addrconf.c   2004-10-26 14:11:35 +10:00
+++ edited/net/ipv6/addrconf.c  2004-11-09 22:44:35 +11:00
@@ -2989,6 +2989,7 @@
                dst_hold(&ifp->rt->u.dst);
                if (ip6_ins_rt(ifp->rt, NULL, NULL))
                        dst_release(&ifp->rt->u.dst);
+               WARN_ON(ifp->dead);
                if (ifp->idev->cnf.forwarding)
                        addrconf_join_anycast(ifp);
                break;

<Prev in Thread] Current Thread [Next in Thread>