From: Fengguang Wu <fengguang.wu@intel.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>,
Lai Jiangshan <laijs@cn.fujitsu.com>,
linux-kernel@vger.kernel.org
Subject: Re: INFO: suspicious RCU usage in rcu_torture_writer()
Date: Thu, 30 Aug 2012 08:22:36 -0700 [thread overview]
Message-ID: <20120830152236.GC11964@localhost> (raw)
In-Reply-To: <20120827181750.GJ6122@linux.vnet.ibm.com>
On Mon, Aug 27, 2012 at 11:17:51AM -0700, Paul E. McKenney wrote:
> On Mon, Aug 27, 2012 at 12:40:52PM +0800, Fengguang Wu wrote:
> > On Sat, Aug 25, 2012 at 05:01:49PM -0700, Paul E. McKenney wrote:
> > > On Sat, Aug 25, 2012 at 11:36:23AM +0800, Fengguang Wu wrote:
> > > > Greetings,
> > > >
> > > > I got this warning on 3.6.0-rc2. Full dmesg/config attached.
> > > >
> > > > [ 3.051375] Initializing RT-Tester: OK
> > > > [ 3.052491] rcu-torture:--- Start of test: nreaders=2 nfakewriters=4 stat_interval=0 verbose=0 test_no_idle_hz=0 shuffle_interval=3 stut
> > > > ter=5 irqreader=1 fqs_duration=0 fqs_holdoff=0 fqs_stutter=3 test_boost=1/1 test_boost_interval=7 test_boost_duration=4 shutdown_secs=0 onoff_interval=0 onoff_holdoff=0
> > > > [ 3.059084]
> > > > [ 3.059451] ===============================
> > > > [ 3.060454] [ INFO: suspicious RCU usage. ]
> > > > [ 3.061482] 3.6.0-rc2-00010-g4c58c42 #59 Not tainted
> > > > [ 3.062686] -------------------------------
> > > > [ 3.063744] /c/kernel-tests/src/stable/kernel/rcutorture.c:990 suspicious rcu_dereference_check() usage!
> > > >
> > > > 982 do {
> > > > 983 schedule_timeout_uninterruptible(1);
> > > > 984 rp = rcu_torture_alloc();
> > > > 985 if (rp == NULL)
> > > > 986 continue;
> > > > 987 rp->rtort_pipe_count = 0;
> > > > 988 udelay(rcu_random(&rand) & 0x3ff);
> > > > 989 old_rp = rcu_dereference_check(rcu_torture_current,
> > > > >990 current == writer_task);
> > > > 991 rp->rtort_mbtest = 1;
> > > > 992 rcu_assign_pointer(rcu_torture_current, rp);
> > > > 993 smp_wmb(); /* Mods to old_rp must follow rcu_assign_pointer() */
> > > > 994 if (old_rp) {
> > >
> > >
> > > Does the following clear this up?
> >
> > Sorry I'm still trying to reproduce this. It must be a rare bug
> > because it only showed up in several of the tens of thousands of test
> > boots. To reproduce it, I've done near 1000 boots however still not
> > caught it yet. Let's run it for more time...
>
> I will push the fix up for 3.7, if something else is happening, we can
> debug when it comes up. ;-)
Good idea! Since it's a really hard to reproduce problem that only
shows up after thousands of boots, it's easier to push the obvious fix
first. If ever it's not really fixed, the bug will show up again some
day and caught by the test system ;-)
Thanks,
Fengguang
prev parent reply other threads:[~2012-08-30 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-25 3:36 INFO: suspicious RCU usage in rcu_torture_writer() Fengguang Wu
2012-08-26 0:01 ` Paul E. McKenney
2012-08-27 4:40 ` Fengguang Wu
2012-08-27 18:17 ` Paul E. McKenney
2012-08-30 15:22 ` Fengguang Wu [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=20120830152236.GC11964@localhost \
--to=fengguang.wu@intel.com \
--cc=josh@joshtriplett.org \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
/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