From: Andrew Morton <akpm@linux-foundation.org>
To: dipankar@in.ibm.com
Cc: David Howells <dhowells@redhat.com>,
rusty@rustcorp.com.au, torvalds@linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: Race between RCU and rmmod
Date: Wed, 2 May 2007 11:47:51 -0700 [thread overview]
Message-ID: <20070502114751.db7ab5d1.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070502120051.GA13349@in.ibm.com>
On Wed, 2 May 2007 17:30:51 +0530
Dipankar Sarma <dipankar@in.ibm.com> wrote:
> On Wed, May 02, 2007 at 12:50:24PM +0100, David Howells wrote:
> >
> > Hi Dipankar, Rusty,
> >
> > I seem to have found a race between RCU and rmmod. What I see appears to be
> > an RCU destructor function that has a call pending but lives in a module, gets
> > deleted before the RCU callback is processed:
> >
> > RIP: 0010:[<ffffffff880329b7>] [<ffffffff880329b7>]
> >
> > I think that rmmod needs to clear the RCU destructor queue, probably inside of
> > __try_stop_module().
>
> This is why we have rcu_barrier() although the corresponding documentation
> patch seems to have got dropped. Modules that use RCU must call
> rcu_barrier() in their cleanup routine.
>
hm, I never knew that.
akpm:/usr/src/linux-2.6.21> grep -r rcu_ drivers | wc -l
182
akpm:/usr/src/linux-2.6.21> grep -r rcu_barrier drivers | wc -l
0
For a start we should undrop that documentation patch, please.
prev parent reply other threads:[~2007-05-02 18:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 11:50 Race between RCU and rmmod David Howells
2007-05-02 12:00 ` Dipankar Sarma
2007-05-02 12:33 ` Rusty Russell
2007-05-02 18:47 ` Andrew Morton [this message]
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=20070502114751.db7ab5d1.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=dipankar@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@linux-foundation.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