From: Paul Mackerras <paulus@samba.org>
To: David Miller <davem@davemloft.net>
Cc: Knut_Petersen@t-online.de, linux-kernel@vger.kernel.org,
mostrows@earthlink.net, linux-ppp@vger.kernel.org
Subject: Re: [BUG] 2.6.38-rc2: Circular Locking Dependency
Date: Mon, 7 Feb 2011 21:43:15 +1100 [thread overview]
Message-ID: <20110207104315.GB17044@brick.ozlabs.ibm.com> (raw)
In-Reply-To: <20110207102950.GA17044@brick.ozlabs.ibm.com>
On Mon, Feb 07, 2011 at 09:29:50PM +1100, Paul Mackerras wrote:
> We seem to have recursed in the ppp code because of (apparently)
> handling a softirq inside a spin_lock_bh region. :( If I understand
> the original report correctly, the stack trace looks like this in part:
>
> [<c04153eb>] net_rx_action+0x3f/0xfe
> [<c0128563>] __do_softirq+0x76/0xfd
> -> #1 (_xmit_NETROM){+.-...}:
> [<c01462b2>] lock_acquire+0x47/0x5e
> [<c0471c9c>] _raw_spin_lock_irqsave+0x2e/0x3e
> [<c040ed60>] skb_dequeue+0x12/0x4a
> [<f814c237>] ppp_channel_push+0x2e/0x94 [ppp_generic]
>
> So we were in ppp_channel_push, and the first thing it does is
> spin_lock_bh(&pch->downl), and then it calls skb_dequeue, which did a
> spin_lock_irqsave, and then somehow we get into __do_softirq. I
> thought spin_lock_bh should have stopped softirqs from running?
OK, I think I have misinterpreted the lockdep info in the original
message. If it's saying that we are trying to get ppp->rlock when we
have taken chan->downl, then that would indeed be a bug, since the lock
ordering as documented in the comments is ppp->rlock -> chan->downl.
I can't see in the code where that happens though and the lockdep
trace doesn't seem to be telling me either.
Paul.
next prev parent reply other threads:[~2011-02-07 10:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 9:25 Knut Petersen
2011-02-07 7:28 ` David Miller
2011-02-07 10:29 ` Paul Mackerras
2011-02-07 10:43 ` Paul Mackerras [this message]
2011-02-08 7:51 ` Knut Petersen
2011-02-08 8:07 ` David Miller
2011-02-08 23:04 ` David Miller
2011-02-09 7:26 ` Knut Petersen
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=20110207104315.GB17044@brick.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=Knut_Petersen@t-online.de \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppp@vger.kernel.org \
--cc=mostrows@earthlink.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
all inboxes | Powered by JetHome®