From: Jeff Garzik <jgarzik@pobox.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: YOSHIFUJI Hideaki / ???????????? <yoshfuji@linux-ipv6.org>,
"David S. Miller" <davem@davemloft.net>,
netdev@oss.sgi.com
Subject: Re: "Badness" again
Date: Fri, 14 Jan 2005 23:20:30 -0500 [thread overview]
Message-ID: <41E89A0E.5020207@pobox.com> (raw)
In-Reply-To: <20050115002638.GA13849@gondor.apana.org.au>
Herbert Xu wrote:
> On Fri, Jan 14, 2005 at 05:16:12PM -0500, Jeff Garzik wrote:
>
>>Blah. Any other suggestions for debugging this thing?
>
>
> Yes I have a better theory now :)
>
> All your "badness" messages start with a call to udpv6_sendmsg().
> That function calls ip6_dst_lookup() to get its dst entry. Note
> that udpv6_sendmsg() does not hold a lock on the sk at all. However,
> ip6_dst_lookup() uses __sk_dst_check() which is only safe if you can
> either guarantee single-threadedness or if you hold sk_dst_lock.
>
> Neither is true here and therefore we may have a situation where
> the cached dst is released twice. In fact I tracked down the
> address closest to the "badness" messages and it belongs to
> one of your domain's name servers. That means the requests were
> probably made by named, which is multi-threaded.
>
> So please give this patch a spin and see if it makes things any
> better. I've verified that no callers to ip6_dst_lookup() holds
> sk_dst_lock so it's safe (but possibly redundant in cases where
> they hold locks on the sk itself) to use sk_dst_check().
Running with this patch now, we'll see how it goes. Thanks.
FWIW I also see ICMP code paths in the tracebacks (but that may be
"second message" noise).
Jeff
next prev parent reply other threads:[~2005-01-15 4:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <41E83B8D.8020003@pobox.com>
[not found] ` <20050114215833.GA12981@gondor.apana.org.au>
[not found] ` <41E844AC.6040200@pobox.com>
2005-01-15 0:26 ` "Badness" again Herbert Xu
2005-01-15 4:20 ` Jeff Garzik [this message]
2005-01-15 5:46 ` Herbert Xu
2005-01-15 5:06 ` David S. Miller
2005-01-15 5:13 ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-15 10:39 ` Lennert Buytenhek
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=41E89A0E.5020207@pobox.com \
--to=jgarzik@pobox.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.com \
--cc=yoshfuji@linux-ipv6.org \
/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;
as well as URLs for NNTP newsgroup(s).