Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp351374rdb; Thu, 22 Feb 2024 05:58:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVxcp4kxcqabHQxTf8wBtyUDdCCEFlBGBBxdi1KkkOsqgRZp77ENiR1C6OPmcqngJBgMG9AIvEuPk9jIUXdZjtvkG3lwEyLG6odA3j1g== X-Google-Smtp-Source: AGHT+IEvKsK/LpYS480k4c63yR/Ji9dxirZREPQZotuqFyk43BC39WZT397PEbNEuhISt/21Gc5i X-Received: by 2002:a05:6358:5e85:b0:17b:5c4c:7895 with SMTP id z5-20020a0563585e8500b0017b5c4c7895mr5820514rwn.22.1708610303903; Thu, 22 Feb 2024 05:58:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708610303; cv=pass; d=google.com; s=arc-20160816; b=Ne//egsbhH3pEkC/e6LgGAjxRc34T0uEy92cOsi05K4m54nW9SVqcMn202XznqeoiK rVVZXLUXfustezwh2d29kDYMJagmuj30jSklFLS8gN/ZbycsZPIkYAq/7XyyIrsHetC3 TgC7mTheFAW3JGeKVJNPONu+yn9TuT9XIOXbzDi8HxoSCmUv3BAGIrW2q3n/RLQzN0dn EmUoMsUseET2KsIGUUaWl6HbCaVVga0JzCp6djSOJRX37eoCG9mleoxEjZ0FTWIMBAJ4 zB/ob4eAqh2o+R/zhq9EhKD5EeHeFebqcIw7MZcGTsskvxwLvyiziU0/ZVUXFDCaQC58 COtA== 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=qjmPfoVywGfr4jqsh5FJ/yxg8KOM8vjU9JBU7Z2KpR4=; fh=9Ou75zBehUTg/ofB5GuPQEVqBYSUFuD/6DHE6seri1w=; b=XHlnsJB+opd/YCd/i5mC7RiY0sW5rIZ0/vZWNfJLTyqndLhpBA6NgnvBagmrhTs/Mv ecBDLh/rnGbWmqHxtHYPrT9zuQgKG4Exg+L/bTu2sQW6RvwUIQHOTmk+Qn2Uq1mp+cYc yGMxCeXtrUKdO0EMMTvkXCBBFKfw9SnbvRCkzjMv442EWE+4lPhMHT85BZIkGhDTLqcL +cHObFYOvytv5rWXatDnZaPwsCwVPsGOQ9wRJeSuyZ67OfBxo/Awpy7XklgrEM8hqwFQ eri7Ue7vhMQn8Pu4d8QaWf7rPsHMU7GOlJgRm4knWiMfuDroHweDKa00/pgz1Q2lbXC5 phEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aanTBA7Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76651-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g69-20020a636b48000000b005cd6507bb84si9954167pgc.183.2024.02.22.05.58.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:58:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76651-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aanTBA7Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76651-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76651-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 901A628270D for ; Thu, 22 Feb 2024 13:58:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 473DB146018; Thu, 22 Feb 2024 13:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aanTBA7Q" 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 4F656133425; Thu, 22 Feb 2024 13:58:02 +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=1708610283; cv=none; b=hZefbuIgv0u/bIcmsB+v0T+GKW+P5WGMKmy8eT7OAmLaKaQaD1NUMYbRAPSGZtQVMvU0Houn8B0KqutAtjxztX+ZK19UEAgvnQlWSB7ZgfTgIbr0fPowLCGJ6XkEZ6BMHC7UgwxvgtfyWQb+scVvuOdB3ISZRa3pRM5L8APSdAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610283; c=relaxed/simple; bh=qjmPfoVywGfr4jqsh5FJ/yxg8KOM8vjU9JBU7Z2KpR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C+TWLfofWNgZEafxNoAecDDqfXWlFwy+15gka/Opymyq/daCGqB5Hg8kQK2/mtXRPRg0tyZ0r3Whv5tFUZliwR7sQYBz+4ZnP0mkMmn87jY+R4tcLkmP1+kHzv841XfEUsn2qMO36LETTlCW71OWm9bJBQIHRn0uQ26c0+hlg+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aanTBA7Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D645C43390; Thu, 22 Feb 2024 13:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708610282; bh=qjmPfoVywGfr4jqsh5FJ/yxg8KOM8vjU9JBU7Z2KpR4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aanTBA7Q5SU1zTtPDaMhX4nwG1EogaRTB6711DBMiXTmU8FRFzAcB7zQYgcUM2OaJ XHksqp0nMGR665Zm+lDgT+yDropmULnL8lKiWtjJKJ3NL1ecrCmrLU8OR7ZcsowhNV u+zivFcDWQqEkxqOD8K6xYSAKOOwaNrLKqXv3SiHTMwf1JJvLKTjXxiKAVOfTIyX6A QW2bcztZSCAVxYQoLX8XBJuGKkKkAorTgEuxggq4WcuU6lezBNTj3BInSRIVEXBTih tlOZte74whZIn/QZQ00VCk0r89EM0A76cAGvXtNTTd6uAX30BQpy9H3OHFzXJG137X 8lNOIn1prx5Vg== Date: Thu, 22 Feb 2024 13:57:53 +0000 From: Mark Brown To: "Edgecombe, Rick P" Cc: "dalias@libc.org" , "linux-arch@vger.kernel.org" , "suzuki.poulose@arm.com" , "Szabolcs.Nagy@arm.com" , "musl@lists.openwall.com" , "linux-fsdevel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "kvmarm@lists.linux.dev" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "catalin.marinas@arm.com" , "oliver.upton@linux.dev" , "palmer@dabbelt.com" , "debug@rivosinc.com" , "aou@eecs.berkeley.edu" , "shuah@kernel.org" , "arnd@arndb.de" , "maz@kernel.org" , "oleg@redhat.com" , "fweimer@redhat.com" , "keescook@chromium.org" , "james.morse@arm.com" , "ebiederm@xmission.com" , "will@kernel.org" , "brauner@kernel.org" , "hjl.tools@gmail.com" , "linux-kselftest@vger.kernel.org" , "paul.walmsley@sifive.com" , "ardb@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mm@kvack.org" , "thiago.bauermann@linaro.org" , "akpm@linux-foundation.org" , "sorear@fastmail.com" , "linux-doc@vger.kernel.org" Subject: Re: [musl] Re: [PATCH v8 00/38] arm64/gcs: Provide support for GCS in userspace Message-ID: References: <20240221012736.GQ4163@brightrain.aerifal.cx> <20240221145800.GR4163@brightrain.aerifal.cx> <4a3809e8-61b2-4341-a868-292ba6e64e8a@sirena.org.uk> <20240221175717.GS4163@brightrain.aerifal.cx> <20240221183055.GT4163@brightrain.aerifal.cx> <20240221190639.GU4163@brightrain.aerifal.cx> 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="Y7x2ZPCVf8cy8GEb" Content-Disposition: inline In-Reply-To: X-Cookie: I have accepted Provolone into my life! --Y7x2ZPCVf8cy8GEb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 21, 2024 at 07:22:21PM +0000, Edgecombe, Rick P wrote: > On Wed, 2024-02-21 at 14:06 -0500, dalias@libc.org wrote: > > It's fine to turn RDSSP into an actual emulated read of the SSP, or > > at > > least an emulated load of zero so that uninitialized data is not left > > in the target register. > We can't intercept RDSSP, but it becomes a NOP by default. (disclaimer > x86-only knowledge). For arm64 we have a separate control GCSCRE0_EL1.nTR for access to GCSPR_EL0 (our SSP equivalent) we can use. > > I have not looked at all the instructions that become #UD but I > > suspect they all have reasonable trivial ways to implement a > > "disabled" version of them that userspace can act upon reasonably. > This would have to be thought through functionally and performance > wise. I'm not opposed if can come up with a fully fleshed out plan. How > serious are you in pursuing musl support, if we had something like > this? Same here, we have to be careful since it's defining ABI in a way that we don't normally provide ABI but if there's a clear case for doing it then... --Y7x2ZPCVf8cy8GEb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXXUuAACgkQJNaLcl1U h9CWhgf9ENKHpmQFWkFp9BvnSQpoqzt8GvTsea21+X/Sj2LF1t9awlhI1ZonFcLg kiWOH7voRFXaX11HTooF+5zW0lljzQzeKy6a4cAqvyhV93pQz5U7Tzuk5xqkLe3o mtXBUEWVIO/JPNSAwHNb44hXL7AjS1MEYgj0iqYvqWCYqikKit3kjOjJrc3jdb4y 3NQgra/qAykoQji1F3ZFkEtRyHALvMWET9TzzVyrCoTYPzIRzCWnkkBxKsNMokGC nwxW+cuoESrLNygNc/V3CbbUqAYkdO7AbmSvBvzQ0pboXO5M+p4sPnapddZeoYiK JVmWfU7+hu6JUz1Bj5tBIoRL24Q7Og== =mhhY -----END PGP SIGNATURE----- --Y7x2ZPCVf8cy8GEb--