From: Alan Stern <stern@rowland.harvard.edu>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Andrea Parri <parri.andrea@gmail.com>,
will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com,
npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk,
luc.maranget@inria.fr, akiyks@gmail.com, dlustig@nvidia.com,
joel@joelfernandes.org, linux-kernel@vger.kernel.org,
hernan.poncedeleon@huaweicloud.com,
jonas.oberhauser@huaweicloud.com
Subject: New locking test for the paulmckrcu/litmus github archive
Date: Wed, 5 Jun 2024 10:47:03 -0400 [thread overview]
Message-ID: <a8c06694-098d-4b95-845c-96b40cd3ff2d@rowland.harvard.edu> (raw)
Paul:
Below is a new litmus test for the manual/locked directory in your
github archive. It is based on a suggestion from Andrea Parri, and it
demonstrates a bug in the current LKMM lock.cat file. Patches to fix
that file will be sent shortly.
Alan
---
C islocked+lock+islocked+unlock+islocked.litmus
(*
* Result: Always
*
* This tests the memory model's implementation of spin_is_locked().
*)
{}
P0(spinlock_t *x)
{
int r0;
int r1;
int r2;
r0 = spin_is_locked(x);
spin_lock(x);
r1 = spin_is_locked(x);
spin_unlock(x);
r2 = spin_is_locked(x);
}
exists (0:r0=0 /\ 0:r1=1 /\ 0:r2=0)
next reply other threads:[~2024-06-05 14:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 14:47 Alan Stern [this message]
2024-06-05 18:25 ` Paul E. McKenney
2024-06-05 18:40 ` Alan Stern
2024-06-06 17:07 ` Paul E. McKenney
2024-06-06 17:21 ` Alan Stern
2024-06-06 17:57 ` Paul E. McKenney
2024-06-06 18:52 ` Alan Stern
2024-06-06 19:00 ` Paul E. McKenney
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=a8c06694-098d-4b95-845c-96b40cd3ff2d@rowland.harvard.edu \
--to=stern@rowland.harvard.edu \
--cc=akiyks@gmail.com \
--cc=boqun.feng@gmail.com \
--cc=dhowells@redhat.com \
--cc=dlustig@nvidia.com \
--cc=hernan.poncedeleon@huaweicloud.com \
--cc=j.alglave@ucl.ac.uk \
--cc=joel@joelfernandes.org \
--cc=jonas.oberhauser@huaweicloud.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luc.maranget@inria.fr \
--cc=npiggin@gmail.com \
--cc=parri.andrea@gmail.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=will@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
all inboxes | Powered by JetHome®