Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1092532rdb; Tue, 30 Jan 2024 07:42:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1X3PpZHIyBOfQqN2b0vuSjTiUm9MfDIRgQ+sOkny4Lw2Scm0YUGcyMJtRP8KoIudj4f37 X-Received: by 2002:a17:906:d110:b0:a35:991e:5085 with SMTP id b16-20020a170906d11000b00a35991e5085mr1769462ejz.30.1706629374302; Tue, 30 Jan 2024 07:42:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706629374; cv=pass; d=google.com; s=arc-20160816; b=E1oGBB0Pydmmngdu4tZezHDrgRRbNHDSotcUmCJRhBOiX75+fgZbf8frdxcWjTj7pb 7AwghVeLeSl6+O8UMBaJ8t5/UNGpis40W5qDK66xXYDWMMQpxQ+Ovd2VlM74TsoZYcSi rN2VTqYU7Xq/sikkXf0IrYC7UeGH52E+M/Rk9jFyQ8TRqPX7NGDzcWiVhRN+J8q9ofGJ U/Gbtih9hv6yccIVM+97tPVYyasoNryGTOSKEkKYIwBlkljABGf+NDv5whDmXK/oodC/ lkEpBIA/+FLe4UFR2dCvbQDQIcQ1tvwHsjEPclZKeXDnL9jYdxSgDVFXaOQQ/fumIA+h LMxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6392iYJ7mQw7ptQCLYBWJFJLX6HwkvTOYE6VmBSjM/0=; fh=MvzyZkJZ8J8Wohm24CZ4wAV4Ve0ze5Tm38JRp5Ov+Sw=; b=TJ/dZqsaTdO+vlcFPewxJSkPBzlLJRIatf3nLPcGGcVPT1LL7pgDLMuj/jdPVogobs oLzSVFC7+Tr1bk7TNZxtW4WVrA/bRdq6JXGXyewqf1TPMs0E/xgHZNpoTMrhqKaVZnx9 EtReCK0fy6gk3jgXjDSn7rA8sGqUlFzzQdwDef2UCRTeBdKN1gCmk73AVu2Wc4cylo8S rOiv05nSnKqUinuOl9UYSqTVQCgWrP6rgIJahVVLTU5lHoJPMHtMUsdPPG87tmF1GEFM RV663sQEzlzTwNZ+S9J1FzJurTYj2hAQbbGqczH7kqrzPwVLSr/X3aXJQsIYO/p/UHyA 5P5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CdUwFC7z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44861-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44861-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v11-20020a170906488b00b00a35ef6b622bsi1427842ejq.611.2024.01.30.07.42.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 07:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44861-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CdUwFC7z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44861-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44861-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6132A1F29D1D for ; Tue, 30 Jan 2024 15:42:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AA4382D98; Tue, 30 Jan 2024 15:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CdUwFC7z" 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 318EC823D5; Tue, 30 Jan 2024 15:42:07 +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=1706629327; cv=none; b=Rj/nkee7j9rku20y2Ek0GorNaNpY5PYuqguW3LvaOPzQV3Pbn/agS2sCYLqhtKAHc8i4774lrHobvvXadSs7nVBb88l57EElYI1aWEw6W1dfbwFIBmvz7WhPCP/TVT7iSQcznUKSoFcm7A+wxWlr1k+eK9M2BfzF7qwtuXO3eTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706629327; c=relaxed/simple; bh=K9ilCI4Rt3rm9gX90CpAUoo1upcRz8+OttanBkZjGIk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZhmXdWVfyCzMiNGto8e35I9Ev57CnV3hUUvoyKCBMIb4Kwa4hwkCZ0GERTiEhdQ0Fz+GCB3+BVvySLEclXzJEucG1TdCtBgVdgGmqvUiut2eT+znlwSdNR55f1BaFyqLSKmHv9v+kBcDbG/WsUKVXJ/yyLbsxU1wwwY6opdx5Do= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CdUwFC7z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6D83C433C7; Tue, 30 Jan 2024 15:42:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706629327; bh=K9ilCI4Rt3rm9gX90CpAUoo1upcRz8+OttanBkZjGIk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CdUwFC7zS1yWxDNbi6ul7ioKdZ9jQvFgeF+RS4fuhYu0mR9B8/QYUURgLB9lZklwN D6VlTSU8W9v+EpVwqVNgDleoRlWOL+3HFfQQam597ipkOtllep1gFGQs5gvztR06eW SUaX955QD19uj8xZ2fdp7fBSD7BXz/WlOhuOJmMOdlOsLkCc3rwN4fPFt0Ok2eVGrq bEns3NZwFPw/maDpfqILC5Um8lDr0YdK05rawpe8iXcZgN/cmPUU9UWQcZfumK3GVA su5CvJ/a8M89v4WnD9C6gCVwu93B59cskCywuQ3WvuskKYdtPFdcYN+BN5i0+MKnWo O2Hh5UBtlcGAw== Date: Tue, 30 Jan 2024 15:42:01 +0000 From: Mark Brown To: Dave Martin Cc: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] arm64/signal: Don't assume that TIF_SVE means we saved SVE state Message-ID: <19c46e3c-c6bf-40d0-8d58-06516d9dd878@sirena.org.uk> References: <20240119-arm64-sve-signal-regs-v1-1-b9fd61b0289a@kernel.org> <20240130115107.GB13551@willie-the-truck> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4gCnTtxSCeQg0qyr" Content-Disposition: inline In-Reply-To: X-Cookie: 1 bulls, 3 cows. --4gCnTtxSCeQg0qyr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 30, 2024 at 02:44:51PM +0000, Dave Martin wrote: > I think the logic is that any ptrace call that can access or manipulate > the state of a task is gated on the task being ptrace-stopped. Once we > have committed to deliveing a signal, we have obviously run past the > opportunity to stop (and hence be ptraced) on that signal. This seems to be all there, the core ptrace and the signal handling code talk to each other and ensure that we won't try to rewrite the state in the middle of signal handling so we should be safe here. --4gCnTtxSCeQg0qyr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmW5GMgACgkQJNaLcl1U h9Dnmwf/SHPLNxtI08Q9P0nCm/6VzM/IFHTnckNtHAY8LCQ0FRHuj9g6onqnusDI 8UOpeTzVaTMm/ZP1w+8DaGzGob0e91EdaX2vh07aDEXkWCLxU3qtqbi3U3TRSws2 F+NLZ5cL0NOcKh0v/KLrFbi+W+J8aqGTaAZgTy+xzDfkCT8XBjfIY7WetfNg+bP8 1qJN2IJD+hktFW/6UHlC6CS3opanMbckIEa79Fr+K3+Ju7AeGim0vQ6lkfyNcsuW Qs3Qr89FDX76WSDa8cKdkx12RpDAQWf8qZRA21fpzqjcU9rcq0NXRIAbe0wzXDf3 5el0OMaq6kteT/w1XyahKRRPthsDZA== =NMhg -----END PGP SIGNATURE----- --4gCnTtxSCeQg0qyr--