All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Z qiang <qiang.zhang1211@gmail.com>, rcu@vger.kernel.org
Subject: Re: One-off rcu_nocb_rdp_deoffload bug
Date: Wed, 4 Sep 2024 15:48:02 +0200	[thread overview]
Message-ID: <ZthlEg2njJwXMk32@localhost.localdomain> (raw)
In-Reply-To: <236a1f66-f128-44e4-9272-7ae4dbad7485@paulmck-laptop>

Le Wed, Sep 04, 2024 at 05:59:46AM -0700, Paul E. McKenney a écrit :
> On Tue, Aug 20, 2024 at 10:46:43AM -0700, Paul E. McKenney wrote:
> > On Tue, Aug 20, 2024 at 04:43:39PM +0200, Frederic Weisbecker wrote:
> > > Sorry for the html mail, I only have my phone ...
> > > 
> > > Le mar. 20 août 2024, 13:07, Z qiang <qiang.zhang1211@gmail.com> a écrit :
> > > 
> > > > >
> > > > > Hello, Frederic,
> > > > >
> > > > > I have seen this once on Neeraj's tree with a few commits on top (-rcu
> > > > > commit 46774278c74f ("rcutorture: Test start-poll primitives with
> > > > > interrupts disabled").  But only the once so far.
> > > > >
> > > > > This is the WARN_ON_ONCE(rcu_segcblist_n_cbs(&rdp->cblist)) in
> > > > > rcu_nocb_rdp_deoffload().
> > > > >
> > > > > Thoughts?
> > > > >
> > > >
> > > > The rcu_segcblist_extract_done_cbs() doesn't reduce the count of
> > > > rsclp->len,
> > > > in rcu_do_bacth().  this may cause that after we execute the barrier rcu
> > > > callback, before decrementing the count of rsclp->len,  the rcu_barrier()
> > > > returns and makes a judgment of rcu_segcblist_n_cbs(&rdp->cblist)  in
> > > > rcu_nocb_rdp_deoffload().
> > > >
> > > 
> > > That sounds plausible! You just unlocked my thoughts running in circle
> > > since yesterday.
> > > 
> > > 
> > > > maybe can use WARN_ON_ONCE(rcu_segcblist_n_segment_cbs()) instead
> > > > of WARN_ON_ONCE(rcu_segcblist_n_cbs())
> > > >
> > > > Thoughts?
> > > 
> > > I'll test that once I'm back from vacation the september 2nd. Thanks!
> > 
> > Thank you both!!!
> > 
> > Running -next over last night hit a number of boot-time splats, so I
> > have no idea if this reproduces nicely.  Can't have everything!  ;-)
> 
> And it is now a two-off given another one last night's testing.  This was
> from 168 hours of TREE01 on my -rcu "dev" branch (as opposed to -next),
> but I have run many runs over the past two weeks.  So it is reproducible,
> but rare.
> 
> Ah, and if it matters, I synched up to Neeraj's latest as of about 18
> hours ago just before starting this test.

Yes, I'm preparing an update for the offending patch (which has one more
embarassing issue while I'm going through it again).

Thanks.

  reply	other threads:[~2024-09-04 13:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 19:44 One-off rcu_nocb_rdp_deoffload bug Paul E. McKenney
2024-08-20 11:07 ` Z qiang
     [not found]   ` <CAFTL4hzY09QEGE+sTqc02d2LkuH_ObYKiuVTfGnrtwjtYiwt4A@mail.gmail.com>
2024-08-20 17:46     ` Paul E. McKenney
2024-09-04 12:59       ` Paul E. McKenney
2024-09-04 13:48         ` Frederic Weisbecker [this message]
2024-09-04 13:52           ` Paul E. McKenney
2024-09-05 18:32             ` Frederic Weisbecker
2024-09-05 18:41               ` Frederic Weisbecker
2024-09-06  6:04                 ` Paul E. McKenney
2024-09-06  6:32                   ` Neeraj upadhyay
2024-09-06  7:48                     ` Paul E. McKenney
2024-09-06 13:12                   ` Frederic Weisbecker
2024-09-06 16:28                     ` Paul E. McKenney
2024-09-07  9:17                       ` Neeraj upadhyay
2024-09-07  9:29                         ` Paul E. McKenney
2024-09-07  9:33                           ` Paul E. McKenney
2024-10-03 14:01                 ` Z qiang
2024-10-03 23:50                   ` Frederic Weisbecker
2024-10-08  2:13                     ` Z qiang

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=ZthlEg2njJwXMk32@localhost.localdomain \
    --to=frederic@kernel.org \
    --cc=paulmck@kernel.org \
    --cc=qiang.zhang1211@gmail.com \
    --cc=rcu@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.