[GIT PULL] LKMM changes for v6.11
From: Paul E. McKenney
Date: Sun Jul 14 2024 - 12:28:50 EST
Hello, Linux,
When the merge window opens, please pull this LKMM update from:
git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/lkmm.2024.07.12a
# HEAD: ea6ee1bac6034cb4e91bcc229ed1354ca1a024d5: tools/memory-model: Code reorganization in lock.cat (2024-06-06 11:24:58 -0700)
----------------------------------------------------------------
lkmm: Fix corner-case locking bug and improve documentation
A simple but odd single-process litmus test acquires and immediately
releases a lock, then calls spin_is_locked(). LKMM acts if it was
a deadlock due to an assumption that spin_is_locked() will follow a
spin_lock() or some other process's spin_unlock(). This litmus test
manages to violate this assumption because the spin_is_locked() follows
the same process's spin_unlock().
This series fixes this bug, reorganizes and optimizes the lock.cat model,
and updates documentation.
----------------------------------------------------------------
Alan Stern (2):
tools/memory-model: Fix bug in lock.cat
tools/memory-model: Code reorganization in lock.cat
Paul E. McKenney (2):
tools/memory-model: Add KCSAN LF mentorship session citation
tools/memory-model: Add access-marking.txt to README
tools/memory-model/Documentation/README | 4 ++
.../memory-model/Documentation/access-marking.txt | 10 ++--
tools/memory-model/lock.cat | 62 +++++++++++++---------
3 files changed, 49 insertions(+), 27 deletions(-)