From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE5A22FDC23 for ; Mon, 1 Dec 2025 08:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764579192; cv=none; b=n98F9dVqxYSRrmA0nEwkLtkjGxVzvUYYiYHU1nyfmi0Kr+fINW2DwvMMS/oGLZP7f57oIv8E1kDBclTzx87CsQ6nlArloIUtUPhv+ADKKIAuyZpFSzjDS+EZJK6jwiQMzV1rNaYMlXswNEoQep6mmkO+FcgNcuiOvb5UoCIe78Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764579192; c=relaxed/simple; bh=Rk4Bv+52Ts3UDAWLB/gMrsrGty3yWKqgke/XhkyXIM8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iSbDPH0X/iPL5r0ixgsf11dED1UfW6a0viqXJKs46JsibJ+ZUFcB+hfjkZNQGY/o0r+6cyZ/HmSmJLYwShDRFhBp5mqjVsk34SJbGsxl66mQ85M05vLWL7CkFh5EV0/WWr+TU2owD8ea53Knlk4rCG3iLqOJN2Qa49zwNxalFS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ID4e82CU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ID4e82CU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4F23C116D0; Mon, 1 Dec 2025 08:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764579191; bh=Rk4Bv+52Ts3UDAWLB/gMrsrGty3yWKqgke/XhkyXIM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ID4e82CUn9Y6WcRA3c2jcY5X8X8qMui05+QlDA0SaGfWuqBWDNRQbWfE68o50sn3l XQkPvm5IKf230U+mCnPqkICrqp5Uzhmpc5zxNcZA46uC9Q37VkLx5e85CuvbBcHP4p noeiviuypSNEBI0walYMQT2ujuMyTVxO9nGwZmM1FQnf0jh8bMfNaOFhbLG1XVcTBt gQkqJSE6MW1d+Oaj9XiOzRhsV3F+Kg2ONoBXlA8sjxgmxVt4IuS5Zb27DH9Cse00qk MXhQqcO8MJW3s7IwCSf0fc7fqr4U68Gyf0ROv3Brf69vxsLXEOpI9xZiMgFP7TmRTp /QIusxvYLNm9A== Date: Mon, 1 Dec 2025 09:53:05 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Will Deacon , Waiman Long , Boqun Feng , Borislav Petkov , Uros Bizjak , Sebastian Andrzej Siewior , Gary Guo , Oleg Nesterov Subject: [GIT PULL] locking updates for v6.19 Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Linus, Please pull the latest locking/core Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-2025-12-01 # HEAD: 43decb6b628eb033a1b6188e5018773c0d38be1d locking/local_lock: Fix all kernel-doc warnings # # MERGE NOTE: Had to rebase the final 4 commits due to a SOB chain fail. # Locking updates for v6.19: Mutexes: - Redo __mutex_init() to reduce generated code size (Sebastian Andrzej Siewior) Seqlocks: - Introduce scoped_seqlock_read() (Peter Zijlstra) - Change thread_group_cputime() to use scoped_seqlock_read() (Oleg Nesterov) - Change do_task_stat() to use scoped_seqlock_read() (Oleg Nesterov) - Change do_io_accounting() to use scoped_seqlock_read() (Oleg Nesterov) - Fix the incorrect documentation of read_seqbegin_or_lock() / need_seqretry() (Oleg Nesterov) - Allow KASAN to fail optimizing (Peter Zijlstra) Local lock updates: - Fix all kernel-doc warnings (Randy Dunlap) - Add the headers to MAINTAINERS (Sebastian Andrzej Siewior) - Reduce the risk of shadowing via s/l/__l/ and s/tl/__tl/ (Vincent Mailhol) Lock debugging: - spinlock/debug: Fix data-race in do_raw_write_lock (Alexander Sverdlin) Atomic primitives infrastructure: - atomic: Skip alignment check for try_cmpxchg() old arg (Arnd Bergmann) Rust runtime integration: - sync: atomic: Enable generated Atomic usage (Boqun Feng) - sync: atomic: Implement Debug for Atomic (Boqun Feng) - debugfs: Remove Rust native atomics and replace them with Linux versions (Boqun Feng) - debugfs: Implement Reader for Mutex only when T is Unpin (Boqun Feng) - lock: guard: Add T: Unpin bound to DerefMut (Daniel Almeida) - lock: Pin the inner data (Daniel Almeida) - lock: Add a Pin<&mut T> accessor (Daniel Almeida) Thanks, Ingo ------------------> Alexander Sverdlin (1): locking/spinlock/debug: Fix data-race in do_raw_write_lock Arnd Bergmann (1): atomic: Skip alignment check for try_cmpxchg() old arg Boqun Feng (4): rust: debugfs: Implement Reader for Mutex only when T is Unpin rust: sync: atomic: Make Atomic*Ops pub(crate) rust: sync: atomic: Implement Debug for Atomic rust: debugfs: Replace the usage of Rust native atomics Daniel Almeida (3): rust: lock: guard: Add T: Unpin bound to DerefMut rust: lock: Pin the inner data rust: lock: Add a Pin<&mut T> accessor Oleg Nesterov (4): documentation: seqlock: fix the wrong documentation of read_seqbegin_or_lock/need_seqretry seqlock: Change thread_group_cputime() to use scoped_seqlock_read() seqlock: Change do_task_stat() to use scoped_seqlock_read() seqlock: Change do_io_accounting() to use scoped_seqlock_read() Peter Zijlstra (2): seqlock: Introduce scoped_seqlock_read() seqlock: Allow KASAN to fail optimizing Randy Dunlap (1): locking/local_lock: Fix all kernel-doc warnings Sebastian Andrzej Siewior (2): locking/mutex: Redo __mutex_init() to reduce generated code size locking/local_lock: Add the headers to MAINTAINERS Vincent Mailhol (1): locking/local_lock: s/l/__l/ and s/tl/__tl/ to reduce the risk of shadowing Documentation/locking/seqlock.rst | 9 ++- MAINTAINERS | 1 + fs/proc/array.c | 9 +-- fs/proc/base.c | 13 +--- include/linux/atomic/atomic-instrumented.h | 26 +++---- include/linux/local_lock.h | 4 +- include/linux/local_lock_internal.h | 62 ++++++++-------- include/linux/mutex.h | 45 +++++++++--- include/linux/seqlock.h | 114 +++++++++++++++++++++++++++++ kernel/locking/mutex-debug.c | 10 +-- kernel/locking/mutex.c | 28 +++++-- kernel/locking/mutex.h | 5 +- kernel/locking/rtmutex_api.c | 19 ++++- kernel/locking/spinlock_debug.c | 4 +- kernel/sched/cputime.c | 20 ++--- rust/kernel/debugfs/traits.rs | 55 +++++--------- rust/kernel/sync/atomic.rs | 12 ++- rust/kernel/sync/lock.rs | 41 ++++++++++- rust/kernel/sync/lock/global.rs | 5 +- samples/rust/rust_debugfs.rs | 12 ++- samples/rust/rust_debugfs_scoped.rs | 6 +- scripts/atomic/gen-atomic-instrumented.sh | 11 ++- 22 files changed, 339 insertions(+), 172 deletions(-)