linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Chandan Babu R <chandanbabu@kernel.org>,
	Matthew Wilcox <willy@infradead.org>,
	xfs <linux-xfs@vger.kernel.org>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	x86@kernel.org, tglx@linutronix.de
Subject: Re: Are jump labels broken on 6.11-rc1?
Date: Tue, 30 Jul 2024 20:10:33 -0700	[thread overview]
Message-ID: <20240731031033.GP6352@frogsfrogsfrogs> (raw)
In-Reply-To: <20240731001950.GN6352@frogsfrogsfrogs>

On Tue, Jul 30, 2024 at 05:19:50PM -0700, Darrick J. Wong wrote:
> On Tue, Jul 30, 2024 at 03:26:26PM +0200, Peter Zijlstra wrote:
> > On Tue, Jul 30, 2024 at 01:00:02PM +0530, Chandan Babu R wrote:
> > > On Mon, Jul 29, 2024 at 08:38:49 PM -0700, Darrick J. Wong wrote:
> > > > Hi everyone,
> > > >
> > > > I got the following splat on 6.11-rc1 when I tried to QA xfs online
> > > > fsck.  Does this ring a bell for anyone?  I'll try bisecting in the
> > > > morning to see if I can find the culprit.
> > > 
> > > xfs/566 on v6.11-rc1 would consistently cause the oops mentioned below.
> > > However, I was able to get xfs/566 to successfully execute for five times on a
> > > v6.11-rc1 kernel with the following commits reverted,
> > > 
> > > 83ab38ef0a0b2407d43af9575bb32333fdd74fb2
> > > 695ef796467ed228b60f1915995e390aea3d85c6
> > > 9bc2ff871f00437ad2f10c1eceff51aaa72b478f
> > > 
> > > Reinstating commit 83ab38ef0a0b2407d43af9575bb32333fdd74fb2 causes the kernel
> > > to oops once again.
> > 
> > Durr, does this help?
> 
> Yes, it does!  After ~8, a full fstests run completes without incident.
> 
> (vs. before where it would blow up within 2 minutes)
> 
> Thanks for the fix; you can add
> Tested-by: Darrick J. Wong <djwong@kernel.org>

Ofc as soon as this I push it to the whole fleet then things start
failing again. :(

> --D
> 
> > 
> > diff --git a/kernel/jump_label.c b/kernel/jump_label.c
> > index 4ad5ed8adf96..57f70dfa1f3d 100644
> > --- a/kernel/jump_label.c
> > +++ b/kernel/jump_label.c
> > @@ -236,7 +236,7 @@ void static_key_disable_cpuslocked(struct static_key *key)
> >  	}
> >  
> >  	jump_label_lock();
> > -	if (atomic_cmpxchg(&key->enabled, 1, 0))
> > +	if (atomic_cmpxchg(&key->enabled, 1, 0) == 1)
> >  		jump_label_update(key);
> >  	jump_label_unlock();
> >  }
> > 
> 

  reply	other threads:[~2024-07-31  3:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30  3:38 Are jump labels broken on 6.11-rc1? Darrick J. Wong
2024-07-30  7:30 ` Chandan Babu R
2024-07-30 13:26   ` Peter Zijlstra
2024-07-30 13:59     ` Darrick J. Wong
2024-07-31  0:19     ` Darrick J. Wong
2024-07-31  3:10       ` Darrick J. Wong [this message]
2024-07-31  5:33         ` Darrick J. Wong
2024-07-31 10:55           ` Peter Zijlstra
2024-08-05 14:35             ` Darrick J. Wong
2024-08-06  9:44               ` Peter Zijlstra
2024-08-06 10:38                 ` Peter Zijlstra
2024-08-06 22:01                   ` Darrick J. Wong
2024-08-07 14:03                   ` Thomas Gleixner
2024-08-07 14:34                     ` Peter Zijlstra
2024-08-07 14:55                       ` Thomas Gleixner
2024-08-07 15:05                         ` Darrick J. Wong
2024-08-07 22:51                           ` Darrick J. Wong
2024-08-27  3:35                           ` Darrick J. Wong
2024-09-05  8:12                             ` Peter Zijlstra
2024-09-05  9:16                               ` Peter Zijlstra
2024-09-16 16:08                                 ` Darrick J. Wong
2024-09-19 23:41                                   ` Darrick J. Wong

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=20240731031033.GP6352@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=chandanbabu@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=willy@infradead.org \
    --cc=x86@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 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).