Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1156320rdb; Fri, 19 Jan 2024 09:48:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmnufJ/+WegAIrtqaC0EQanX+PiJ632Guj2sxNL/h/Gqy+L41H4Vq82yPQetg1Pyqfpymw X-Received: by 2002:a05:620a:cc6:b0:783:3163:e3af with SMTP id b6-20020a05620a0cc600b007833163e3afmr233309qkj.38.1705686489664; Fri, 19 Jan 2024 09:48:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705686489; cv=pass; d=google.com; s=arc-20160816; b=WTobx18nAudrbbkl8c9+fXvmUWU7Z+BPoJ0QuSGbTHyeD0nBp6g3XnyCqiixBTpwya uEiXAa8iNDp+cjp4UxqkQQauP6bh8eIjKcabASFydQyRJjO6HLdxD12a9o0DtAVroIPl qIfUQ/QWn9GEifhWyk1tYJZVir+9S0O1B8OsZFDM6JCrfHmIoVRAeFPvF4bFBq5MhYus naXvpinPIasQShdtbyH0qTQIZta3mj6JYn6oTVLtOUFbPUTqhSxSWG2asdX2LLbOzE1f FAj73KF6nL2P8d750B2t5VtNa0X4F9dtM1n+FIQjAQ8cmMljntBcGy5QWcfBLxhqE1pS jbKQ== 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=PXxWUgWrAz7jXuAo5lquU8rNh3eAWHMyoTMJ0i1RyxM=; fh=du01xoK3g8cYi8DmvDxuImN3tdWozP9iXq7mKim53BI=; b=foNB5SnM+F7c3f5kYDzaQy2n0ZFi0FpIxyiWf1ojv/FRigU9HxZAnVQIoV0BP/pPqJ WqD3zE10k9Ij5tL4C+8cU/8TUVeWEADCA2wTAIAXqMX042M9c/yhB+yohm5yOBZSrzNf YEtH6pORW5/h55GpckYcaG7sGx+zXZCBc2rsWIzZ6ZJij1nSeRnR7QaO91evG3DzJ1Q1 c8ul3o+XmNacFrKSenp+CU+fSu3nN/db73vqXDBrfrRhf9NtvH6HjSRdHWku7B1Wsv3l Pgx8VTQcea9OTnjIl4RxExYsAE0oFFHiBde178HF/JhtXLw+SVVE3BBzHTEuc0zhCm64 z1Pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AT1e8t+0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31436-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ou19-20020a05620a621300b007833cbe0ff0si16260205qkn.681.2024.01.19.09.48.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 09:48:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AT1e8t+0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31436-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 6BA241C23E3E for ; Fri, 19 Jan 2024 17:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBF0355E7B; Fri, 19 Jan 2024 17:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AT1e8t+0" 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 E2AD255C1B; Fri, 19 Jan 2024 17:47:59 +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=1705686480; cv=none; b=emP20kqjlBoBx+RwBg1tuRMo1Z8d+KPN5HkHEVPj+fiCcnI3OB9cmDCXfbrrCaLEuQTbh1pOrK23TrZpc0MADMub/QMMznZiXZkOuT0E/tchte5G8pPbNcT0HIif+09rECTxYtx+vsKVCa3HK9yyAKQZhOjqr7i4Y8cMfqVGfAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705686480; c=relaxed/simple; bh=IHTccTwRzqNIFFZ7ye2V9AMKJRjZryD1NVNDaqxcovw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HUkePAgQS7lHJcheN/KYkBkqmX5pxtm91LeYtklNEzP2UO/DkA8ZxCL0hTeDh8w4gsD/o9wzg/SoS1DAfQEzn7fyym5AlJ4wvz3cDkNsjQyIJXn96AnEwPkgtQG6rT4CgjRo5VSdjtB0khDo+NAzm9WqR0QT+Kpf+T1SHxyj9qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AT1e8t+0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09B93C433F1; Fri, 19 Jan 2024 17:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705686479; bh=IHTccTwRzqNIFFZ7ye2V9AMKJRjZryD1NVNDaqxcovw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AT1e8t+0PvaMGkRhkP+p0BZ8a+0ud7vqglrmkmuOExdPbHUt4BqhlKr1vvT6FUvOr AZiQqfJb9vCkcTfPlBFo9Ls2CWSwYosc/wLQ6Rq0wWFyf33msbzowscGgksvSVAwuv V04WqX5oUDrMybrAzD+jftzFpEd0/RthrDmRr9S27T73he9gU8B/edEyncy748f81c j4bFgRsNSBaSDZlw74Tk9LzbfxEm/YewTHQLi5sUI3hHpa4Amea2quLbwbTVWFKI8E iFfa0nDksFZ4EzVQbDH8REuLce/h9mABUDsFhGLqD48BV2Pq+EW11PVWfNwjzr/h+9 ody7KwVPhdF3w== Date: Fri, 19 Jan 2024 17:47:55 +0000 From: Mark Brown To: Dave Martin Cc: Catalin Marinas , Will Deacon , "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: References: <20240119-arm64-sve-signal-regs-v1-1-b9fd61b0289a@kernel.org> 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="PdO/yksGZmL1ku6b" Content-Disposition: inline In-Reply-To: X-Cookie: You might have mail. --PdO/yksGZmL1ku6b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 19, 2024 at 04:31:13PM +0000, Dave Martin wrote: > On Fri, Jan 19, 2024 at 12:29:13PM +0000, Mark Brown wrote: > > When we are in a syscall we will only save the FPSIMD subset even though > > the task still has access to the full register set, and on context switch > (Pedantic nit: "A even if B" (= "A applies even in that subset of cases > where B"), instead of "A even though B" (= "A applies notwithstanding > that it is always the case that B") (?) If the SVE trapping were > ripped out altogether, it would be a different and rather simpler > story...) I really can't follow what you're trying to say here. I'm not sure I where the bit about "always" comes from here? > If the historical meanings of TIF_SVE have been split up (which seems a > good idea), does that resolve all of the "bare" > test_thread_flag(TIF_SVE) that were still there? There's a couple more, but this is all of them in the signal handling code - I should have one or two more patches. Most of the usage is actually checking the trapping and therefore fine. --PdO/yksGZmL1ku6b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWqtcgACgkQJNaLcl1U h9AnUwf/cnpsqEC3KvSy0DsFTKN0rbF0fDrKRjOyNBrxsRlSeBJVuMRm82vExP1y 55AVWYomuk5PgouebJsPlcOP8+llMA3ADhGOG4Jq1vD2HYZ7mryl9Jm8S1NJ2omK QeGhhBBbFefKqAhPZNtNCH0YCAWIIYENLPO9AxL8Wc318R5mpoAVq4G6yYgy/IaC 8qxER+wemvizj6fBGClDtCe3QVza+q85fAMkP/5ut7E1MFN77QBYcbKpqL7kBfyO n6InpHuFhsgF1VlzlyKUC0qEhDEgoQhASDKo2RWIy5aKrBBF5ZpOaDjyHBC6I8tS cRIuKdmODvJk17W3Z1ODokGNBJopsg== =vwkD -----END PGP SIGNATURE----- --PdO/yksGZmL1ku6b--