[GIT PULL] locking changes for v5.18

Ingo Molnar
2022-03-21T11:11:54Z

Linus,

Please pull the latest locking/core git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-2022-03-21

# HEAD: cd27ccfc727e99352321c0c75012ab9c5a90321e jump_label: Refactor #ifdef of struct static_key

Changes in this cycle were:

- bitops & cpumask:
- Always inline various generic helpers, to improve code generation,
but also for instrumentation, found by noinstr validation.
- Add a x86-specific cpumask_clear_cpu() helper to improve code generation

- atomics:
- Fix atomic64_{read_acquire,set_release} fallbacks

- lockdep:
- Fix /proc/lockdep output loop iteration for classes
- Fix /proc/lockdep potential access to invalid memory
- minor cleanups
- Add Mark Rutland as reviewer for atomic primitives

- jump labels:
- Clean up the code a bit

- misc:
- Add __sched annotations to percpu rwsem primitives
- Enable RT_MUTEXES on PREEMPT_RT by default
- Stray v8086_mode() inlining fix, result of noinstr objtool validation

Thanks,

Ingo

------------------>
Borislav Petkov (4):
asm-generic/bitops: Always inline all bit manipulation helpers
cpumask: Always inline helpers which use bit manipulation functions
cpumask: Add a x86-specific cpumask_clear_cpu() helper
x86/ptrace: Always inline v8086_mode() for instrumentation

Mark Rutland (2):
MAINTAINERS: add myself as reviewer for atomics
atomics: Fix atomic64_{read_acquire,set_release} fallbacks

Masahiro Yamada (2):
jump_label: Avoid unneeded casts in STATIC_KEY_INIT_{TRUE,FALSE}
jump_label: Refactor #ifdef of struct static_key

Minchan Kim (1):
locking: Add missing __sched attributes

Sebastian Andrzej Siewior (2):
locking/local_lock: Make the empty local_lock_*() function a macro.
locking: Enable RT_MUTEXES by default on PREEMPT_RT.

Waiman Long (2):
locking/lockdep: Avoid potential access of invalid memory in lock_class
locking/lockdep: Iterate lock_classes directly when reading lockdep files

Xiu Jianfeng (1):
lockdep: Use memset_startat() helper in reinit_class()

MAINTAINERS | 1 +
arch/x86/include/asm/cpumask.h | 10 +++++
arch/x86/include/asm/ptrace.h | 2 +-
include/asm-generic/bitops/instrumented-atomic.h | 12 ++---
.../asm-generic/bitops/instrumented-non-atomic.h | 16 +++----
include/linux/atomic/atomic-arch-fallback.h | 38 +++++++++++++---
include/linux/cpumask.h | 18 ++++----
include/linux/jump_label.h | 13 ++----
include/linux/local_lock_internal.h | 6 +--
init/Kconfig | 1 +
kernel/locking/lockdep.c | 43 ++++++++++--------
kernel/locking/lockdep_internals.h | 6 ++-
kernel/locking/lockdep_proc.c | 51 ++++++++++++++++++----
kernel/locking/percpu-rwsem.c | 5 ++-
kernel/locking/rwsem.c | 2 +-
scripts/atomic/fallbacks/read_acquire | 11 ++++-
scripts/atomic/fallbacks/set_release | 7 ++-
17 files changed, 168 insertions(+), 74 deletions(-)