Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1512120rdb; Mon, 8 Jan 2024 01:13:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9DictB3yMMM4Ffe6NTkStiuLRFIKMpLeZnEk0dvfjWD2ZLV5XnbsYzIcCDUZmGl+qY00o X-Received: by 2002:a05:620a:29c9:b0:783:2104:c311 with SMTP id s9-20020a05620a29c900b007832104c311mr1611631qkp.31.1704705193499; Mon, 08 Jan 2024 01:13:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704705193; cv=none; d=google.com; s=arc-20160816; b=gJb540FDJWvl1NVBwPY0ckq/vqwEeuLHe5I4BjpXUJFwNyo86BnJ9LFhPsk99Lp3rY ecsw+RIFs7AuEe0whBV/BxnF4aHiXXV0/uhZ4pPCQSsLiwaHVgkJYkYQCSLoWTaE65k3 zl3+VAAsu1pq2lL428W8g+VZ4rWMFa1Th8DRGebS3PIn656P5qTLDeTmo2aS9czBTDwV SJ3PyeZ/QePNcSk0ldKNQfecHEBZ7kuDM9iZu8JJqS8hMNCsPcLp5WBUDdltpvIkolgJ g1THSjwabnVNhf9U2Z1qrH/hIK/1hECdCixA5RM8Sy02g8qX5jZDUdwCUOBlJ3anvQzy i46g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=E0vDlQoKyAco+NdcD9yAh9jSMQmjmWkpatnJ10hqzJI=; fh=19jq44JuBzJ0hyaPzlP7SGp/8EaRCIF4JGXQzzT6LlI=; b=HPK7W2JkhGAr4nNV9P3dQNWMhSNOqtQ9v8GvQVPdW5LBf0Pq6OWqfVzFhTuUNZy71d dLY+SdFGXcznAft2dkYRfXTDJNuxB/GsgFnDToOq6UNFAnf4ejPYnKh43ybzoJlfm3uC U9bB+AlguNn3DifMDS2mEBJ2D3kbd8op5QO2RkWiQsQvKzzwoaRcsTK4UcyYLg7MEFc9 giPrfWjExvT2gKoFQTo/wnDoZq2wW71rEdKE/Thaogt5wM7MhO/2azFtoBLtKGW8Z766 f7Ec7d5jZ+oTklVur+7IakROK/eSiA39OyjTGf03gc0jLcR7RfJAfFAK/CqqCb0tjvOq fIZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WMoVhfyU; spf=pass (google.com: domain of linux-kernel+bounces-19255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs9-20020a05620a470900b0078307831c6bsi7252392qkb.566.2024.01.08.01.13.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:13:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WMoVhfyU; spf=pass (google.com: domain of linux-kernel+bounces-19255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 455A71C21B95 for ; Mon, 8 Jan 2024 09:13:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2B5714003; Mon, 8 Jan 2024 09:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WMoVhfyU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5014111C80 for ; Mon, 8 Jan 2024 09:12:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-555aa7fd668so1654493a12.0 for ; Mon, 08 Jan 2024 01:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704705138; x=1705309938; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=E0vDlQoKyAco+NdcD9yAh9jSMQmjmWkpatnJ10hqzJI=; b=WMoVhfyUnec6uL7nML6et7BIbQyFV/tIH3Mx5dd6+BxjN807yPJRLbZTBrrHe0we3Z Gwv2pkDsrhWbhQfMEM1iaiSBlJHvb51t/4cU0UxyO/BV9OK+Ad+ZMiOf3+/WFTkW99yG 309meYdvXbpOGizhSA2vBKIaw7PnmGbY+1CKqrkRnj7AYl/KCN2wI70OFrFWsG/dseOM mgnOC9IrfSjbR2dN+pF3H5uxkX/uYBJXcPwZ2ElolDtc0VbH4XuDAf5JC5DTU5BuQNGZ EbcJKcMGJ3BNJYc4eGLUGCg+q27xPNOgG2xXGO2XeN7fF6IJB0iHLd90UC40qhETQ87V pbDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704705138; x=1705309938; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=E0vDlQoKyAco+NdcD9yAh9jSMQmjmWkpatnJ10hqzJI=; b=HGeQ3IuB/q05IVMtyXlbrN+mpCqQ/W19qPWSen6pQkFKfaqISi159wOmdGtsU9XdSP OfnPDZaTmRDGygQVjKr0mcbjNVKF0kDNYJ7U/hV5qwoHCm80VEgGeTeWq4vdQRZ/nuzb QicSLtrCXqEqohgxOFfsD8Blhaj4lwYkRLS+zxV52pszifxiSqn48XTfks4dd07fzneN GXm4T/C1+FfonHyLPoCZy0FSBpDVBlNhJmkkFJuOsBhriGAXHJkO/VW8ywO8BLmwckC6 O1vtkBMSjLSBY5uoolBuE6QfilAV7jLfi371P2HWW7T615YaeIo3luCJLalD1s1Kh0Lw 4zGQ== X-Gm-Message-State: AOJu0YxR2PphzX4sWxDXoCBTVvqaH/IGuhofEqs9PlDH3GqjWLL5IScK /roDeHFAsl1najrTT/f7/W0= X-Received: by 2002:a50:8e05:0:b0:557:5d3c:955 with SMTP id 5-20020a508e05000000b005575d3c0955mr1548636edw.50.1704705138313; Mon, 08 Jan 2024 01:12:18 -0800 (PST) Received: from gmail.com (1F2EF3FE.nat.pool.telekom.hu. [31.46.243.254]) by smtp.gmail.com with ESMTPSA id s12-20020a056402164c00b005532a337d51sm4054571edx.44.2024.01.08.01.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:12:17 -0800 (PST) Sender: Ingo Molnar Date: Mon, 8 Jan 2024 10:12:15 +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 Subject: [GIT PULL] locking changes for v6.8 Message-ID: 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 Linus, Please pull the latest locking/core git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-2024-01-08 # HEAD: 2b9d9e0a9ba0e24cb9c78336481f0ed8b2bc1ff2 locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked Locking changes for v6.8: - lock guards: - Use lock guards in the ptrace code - Introduce conditional guards to extend to conditional lock primitives like mutex_trylock()/mutex_lock_interruptible()/etc. - lockdep: - Optimize 'struct lock_class' to be smaller - Update file patterns in MAINTAINERS - mutexes: Document mutex lifetime rules a bit more Thanks, Ingo ------------------> Christophe JAILLET (2): MAINTAINERS: Add include/linux/lockdep*.h locking/lockdep: Slightly reorder 'struct lock_class' to save some memory Ingo Molnar (1): locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked Jann Horn (1): locking/mutex: Document that mutex_unlock() is non-atomic Peter Zijlstra (2): cleanup: Add conditional guard support ptrace: Convert ptrace_attach() to use lock guards Documentation/locking/mutex-design.rst | 18 ++++ MAINTAINERS | 2 +- include/linux/cleanup.h | 52 ++++++++++- include/linux/lockdep_types.h | 2 +- include/linux/mutex.h | 3 +- include/linux/rwsem.h | 8 +- include/linux/sched/task.h | 2 + include/linux/spinlock.h | 41 +++++++++ kernel/locking/mutex.c | 5 ++ kernel/ptrace.c | 154 ++++++++++++++++----------------- 10 files changed, 197 insertions(+), 90 deletions(-)