Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp367320rdh; Wed, 7 Feb 2024 07:08:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXkK9owoAe/hAc8ONlfdkPblDX42GRO0Dx/hBXeAWCUPTBg71gkWtW3Q1l+5qqom/vBA2WzulpkRRW9sitYBSfqhfGF9d1Nj25ASRapZg== X-Google-Smtp-Source: AGHT+IG5gwXZ7i6tT/pPyFE9WDyMrW1iWg6Jk5Xed5kRIialbogO1yNId9M2A+bI8hn6RbbsLPQZ X-Received: by 2002:a05:6122:3a0c:b0:4c0:224c:d24 with SMTP id fp12-20020a0561223a0c00b004c0224c0d24mr3314864vkb.3.1707318483797; Wed, 07 Feb 2024 07:08:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707318483; cv=pass; d=google.com; s=arc-20160816; b=jcZy0tsHXHI+ui99R8/DN2Eve78YVrG2CIqcyq6TM7KPc/IMr5r26s8Evc1BQaGcyF eUp3buM+8G6uxMPm/f+ivJzZfjKGfvFNjhAhajNQupbfQ+P91i+ujoyBm3xKDiQ/D4UZ pDLdpQp9PDXBS/Y3RW++UsaB5vRu8twyq9sTeKNHtQzrc5Yu97iHScMlo39HcqROg8S8 lXL7hBEmK5A3q/uxhPGIU+AD4PyykEGrnk2lVUtwkyZ2RSTsqX4ywM8ZuMMF+u6esm38 MopGRd7I095qMVQnDau+U5Vppjw/3vp+36AIDHanlhwrruNpU6HB56gEAqK+roYCWBb7 k8qg== 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=toPz5e8j8ty1B/Vi707OCV1/v0tJKiz143zCnsLHF9w=; fh=0P9dE7BcTfVpFdgV09AXv477XMGxVCPzDe3FHGEgMuw=; b=kj/vvrbSEDKGAxLnV+I+x41W0AQ19o8Z2WYG32+2SdEcYWxaC5m00txBgDVngv7X6o ZjkhHdsrZPrvVRfhkbwTY/72WqCu+VGjRFNw9w9FTvbNjFJlKBEG8Lw8WcK6jSjMxgEi U2KgfY0ffDNldviph0gGsaoRpEerWFD7ricpm1O63d/o2MhIgUlzC6aPjfOk4QE6I6XH E2w+cZlFgyoWDhqivFnQb0khitjLAcpkDJ+U8kR8qWyd4EzPKBVmTCXwAcTV3570g3Zl 51uNvba+MBLvEqT92GPHNrnhZ8WsYISkwDo+hfJ21qZii+2vJnoNlkiJkyK/D5sZ3/h3 YOsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X92uDQko; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-56691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCV1r2IwqoXDXbKJvajdkDQtZKm24o499Fqq6Il8aIaidDkYoLspAzM/8Elti5Np7fQ2/eaFarlBsTBkBas76aE3TULhSdoSvs6XwwSYAQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e3-20020ac5c7c3000000b004c03da3dbd6si206918vkn.277.2024.02.07.07.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 07:08:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56691-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=@kernel.org header.s=k20201202 header.b=X92uDQko; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-56691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56691-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 87A591C250F5 for ; Wed, 7 Feb 2024 15:07:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3ECC7F492; Wed, 7 Feb 2024 15:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X92uDQko" 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 DF2297E78A for ; Wed, 7 Feb 2024 15:07:41 +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=1707318462; cv=none; b=VpGPXOEYWQK3Tl7ofk5LFT2IPKVIXLQm4N4FrIUyXCSUy9z33jg+8xd97P6p/Oa2B2iKLkqQ224M+XVvPPo0VfU6eNxdJ405Rca/Nl8OzCHViAyz7aWJ2wPQgOP4jrel0yuU2HL7dOSEIFy/sa+RaXYe7mIIrKDBkptX9EPYvKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707318462; c=relaxed/simple; bh=/FqWXfV/HSCjSSNlo7ORSdgjuhGmOAjdQjE+0p+5C8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dVU2uogDjnzy4VCtoB9cnsxltFJKnyuOzYzW0krkCGMCj8Vei/1Iysya5ZQ3N4Ysh/yYdMiuoN/j6XwyBv9Ym8Vnka1nH5qa5NQxbiuSbUk/4FLczKkw3dAVGHebstJC2Wsh7mSL2CF0XONQqCnv7X9tu3sZymRlZOQTKptX06c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X92uDQko; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1ED7C433C7; Wed, 7 Feb 2024 15:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707318461; bh=/FqWXfV/HSCjSSNlo7ORSdgjuhGmOAjdQjE+0p+5C8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X92uDQkouiJaOfpxP+Gy2vRB8fjxUG5Vc7vgi4F70HTzcsvqCcvg9GgHPAkqsL0Qo EHG4ZwgG8xmDwRfSxd1m0U/ToKbe6BHC7FWB7Bi+UiyDXSMhZtnd1ZC8CMHotIHEkQ GtMo1a5b6a0l9hX7OaacKDVbExHR5zB2wvZXASZGTAyia0qPvogUrrlHR0fvwivy7w VQP2t+ixwzL/SdpEoU133551s0o9g0JZIIwjSN/fa4SM2r5o6wQyomVohK0RPalkzZ O1K6gIvdFevIyX7mUo3lTorGWkzJLELRSwE58wyr2NeRm7Bd4irIrR4jnqitwRT3Ft 9+Wfl3iBoe8eA== Date: Wed, 7 Feb 2024 15:07:38 +0000 From: Mark Brown To: Dave Martin Cc: Will Deacon , Catalin Marinas , Oleg Nesterov , Al Viro , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Doug Anderson Subject: Re: [PATCH] arm64/sve: Lower the maximum allocation for the SVE ptrace regset Message-ID: References: <20240203-arm64-sve-ptrace-regset-size-v1-1-2c3ba1386b9e@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="o0RZcVx3sBEJPf63" Content-Disposition: inline In-Reply-To: X-Cookie: You might have mail. --o0RZcVx3sBEJPf63 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 07, 2024 at 01:51:42PM +0000, Dave Martin wrote: > On Wed, Feb 07, 2024 at 01:09:51PM +0000, Mark Brown wrote: > > I think if we fix the ptrace regset issue we're doing a good enough job > > of just using fully dynamic sizing with no limits other than what's been > > enumerated there. We could possibly deal with the enumberation code by > > changing it to use ZCR/SMCR_ELx_LEN_ based defines so that it's > > obviously coming from what we can possibly write to the register but > > it's a bit less clear how to do that neatly. > OK, but we still seem to have two competing approaches: clamp SVE_VQ_MAX > for kernel internal purposes, or restore the dynamic sizing of > NT_ARM_SVE based on the new regset core behaviour. > Are you saying we should or both, or otherwise which one? I'd like to remove uses of SVE_VQ_MAX, to the extent possible by making things dynamic but if not by not using it I would like to not use SVE_VQ_MAX partly due to the considerations you mentioned about people picking up from looking at the kernel source that it's a good idea. --o0RZcVx3sBEJPf63 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXDnLcACgkQJNaLcl1U h9Cqogf/YVubSZSSKxxzH4c7ujFCQ4mUJbGhxjFtTC7VRCd/CQwVl8M/IQ1ravBm 7JX5M0ct6KXGIeQcCl87sT/5QiN00NTospgxZEVvxIdrbLOngYeTrrfjhPoWrvXW 6xHHxFLu0PZHybk7NBOXKqeNxC/ps9mAt9kqdEm1Ba2FTSS+UzXXpQFEDdaVQWHX bZwK5RtA8pmvJPkoMkRBYEoJmQWc1s4bprGFmlB2MHY2iM686C+xwssJYT3HULm3 VMhVAl1Df/y3B3WSV0x7oi5ODrquofGg0BEbrWfAeEjcrdVvf1rRljygLL0GQtUO aYSCVUi+9Fqgntsyy0joF4LwPA94dQ== =yz8L -----END PGP SIGNATURE----- --o0RZcVx3sBEJPf63--