[GIT PULL] locking/core for v5.17

From: Borislav Petkov
Date: Tue Jan 11 2022 - 12:35:03 EST


Hi Linus,

please pull locking/core updates for v5.17.

Thx.

---

The following changes since commit 8f556a326c93213927e683fc32bbf5be1b62540a:

locking/rtmutex: Fix incorrect condition in rtmutex_spin_on_owner() (2021-12-18 10:55:51 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/locking_core_for_v5.17_rc1

for you to fetch changes up to f16cc980d649e664b8f41e1bbaba50255d24e5d1:

Merge branch 'locking/urgent' into locking/core (2021-12-18 10:57:03 +0100)

----------------------------------------------------------------
Peter Zijlstra says:

"Lots of cleanups and preparation; highlights:

- futex: Cleanup and remove runtime futex_cmpxchg detection

- rtmutex: Some fixes for the PREEMPT_RT locking infrastructure

- kcsan: Share owner_on_cpu() between mutex,rtmutex and rwsem and
annotate the racy owner->on_cpu access *once*.

- atomic64: Dead-Code-Elemination"

----------------------------------------------------------------
Arnd Bergmann (4):
futex: Ensure futex_atomic_cmpxchg_inatomic() is present
futex: Remove futex_cmpxchg detection
futex: Fix sparc32/m68k/nds32 build regression
futex: Fix additional regressions

Ingo Molnar (1):
Merge tag 'v5.16-rc5' into locking/core, to pick up fixes

Kefeng Wang (1):
locking: Make owner_on_cpu() into <linux/sched.h>

Marco Elver (1):
locking: Mark racy reads of owner->on_cpu

Mark Rutland (1):
locking/atomic: atomic64: Remove unusable atomic ops

Peter Zijlstra (1):
locking/rtmutex: Squash self-deadlock check for ww_rt_mutex.

Sebastian Andrzej Siewior (10):
kernel/locking: Use a pointer in ww_mutex_trylock().
sched: Trigger warning if ->migration_disabled counter underflows.
locking: Remove rt_rwlock_is_contended().
locking/rtmutex: Add rt_mutex_lock_nest_lock() and rt_mutex_lock_killable().
lockdep/selftests: Avoid using local_lock_{acquire|release}().
lockdep/selftests: Unbalanced migrate_disable() & rcu_read_lock().
lockdep/selftests: Skip the softirq related tests on PREEMPT_RT
lockdep/selftests: Adapt ww-tests for PREEMPT_RT
x86/mm: Include spinlock_t definition in pgtable.
locking: Allow to include asm/spinlock_types.h from linux/spinlock_types_raw.h

Thomas Gleixner (2):
lockdep: Remove softirq accounting on PREEMPT_RT.
Merge branch 'locking/urgent' into locking/core

arch/alpha/include/asm/spinlock_types.h | 2 +-
arch/arc/Kconfig | 1 -
arch/arm/Kconfig | 1 -
arch/arm/include/asm/spinlock_types.h | 2 +-
arch/arm64/Kconfig | 1 -
arch/arm64/include/asm/spinlock_types.h | 2 +-
arch/csky/Kconfig | 1 -
arch/csky/include/asm/spinlock_types.h | 2 +-
arch/hexagon/include/asm/spinlock_types.h | 2 +-
arch/ia64/include/asm/spinlock_types.h | 2 +-
arch/m68k/Kconfig | 1 -
arch/mips/include/asm/futex.h | 27 ++--
arch/powerpc/include/asm/simple_spinlock_types.h | 2 +-
arch/powerpc/include/asm/spinlock_types.h | 2 +-
arch/riscv/Kconfig | 1 -
arch/riscv/include/asm/spinlock_types.h | 2 +-
arch/s390/Kconfig | 1 -
arch/s390/include/asm/spinlock_types.h | 2 +-
arch/sh/Kconfig | 1 -
arch/sh/include/asm/spinlock_types.h | 2 +-
arch/um/Kconfig | 1 -
arch/um/kernel/skas/uaccess.c | 1 -
arch/x86/include/asm/pgtable.h | 1 +
arch/xtensa/Kconfig | 1 -
arch/xtensa/include/asm/futex.h | 8 +-
arch/xtensa/include/asm/spinlock_types.h | 2 +-
include/asm-generic/futex.h | 31 ++--
include/linux/irqflags.h | 23 +--
include/linux/ratelimit_types.h | 2 +-
include/linux/rtmutex.h | 9 ++
include/linux/sched.h | 9 ++
include/linux/spinlock_types_up.h | 2 +-
init/Kconfig | 9 +-
kernel/futex/core.c | 35 -----
kernel/futex/futex.h | 6 -
kernel/futex/syscalls.c | 22 ---
kernel/locking/lockdep.c | 2 +
kernel/locking/mutex.c | 11 +-
kernel/locking/rtmutex.c | 10 +-
kernel/locking/rtmutex_api.c | 30 +++-
kernel/locking/rwsem.c | 9 --
kernel/locking/spinlock_rt.c | 6 -
kernel/locking/ww_rt_mutex.c | 2 +-
kernel/sched/core.c | 3 +
lib/atomic64.c | 2 -
lib/locking-selftest.c | 172 ++++++++++++++++-------
46 files changed, 241 insertions(+), 225 deletions(-)

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg