From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5F733350298; Tue, 6 Oct 2026 16:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791304302; cv=none; b=g9u+htiCox+azfy9W8nxQKiJzGVP17+utsUDaaqdNDcRgMJFFOnnXuMHRF/burWSVPV88lKAJLZ0yLhooeYFHuJVCiRIsWoOofCnRojtfQWW9hL17/wDzRa91CQKFbH6g594duYtgMSG6YmtZbQd4D/QnyuMibKbY891Kj1tExM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791304302; c=relaxed/simple; bh=oEU7AUmEa0w1b7v5C8WdXlv6vQvEAhWjxyz76YPRccQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pvqdD7hBNeITXrqidDpGSjLO8MQ8FTEfTqvZBecZboB86K/OvKaMs3Qby4cxq8QqBr8kzF/rvo7Jk2sP8FYV51uau2qryzGil8QZQJIBxvk+UWQUg8I7PBqVf08X3+4D0gn1z2hKUHKvKFL20vzV1t3h1GzXktMIJpd2+wI+T4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b85/A9a3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b85/A9a3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDDBE1F0089C; Tue, 6 Oct 2026 16:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791304301; bh=xn9CHPNUMgXF5eWjO16T9pJS08WP8G7GaEcEU5LwiB8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=b85/A9a3zJ2tHjg+mxFnHhqHDk8/ARNUI3HXYA91FMKbk+Y1gyDKUZbuVv0keOsSE Q7PmamlF0h2K+efxqkWvY5ZsUleMA3z0XaHm4rCSZMjN1W7dguK6lMmI/MiDtXQ/7D gKvqAf3k3Qf0caa1PhzWlubj8aXCMS8+cGmhj+O1aErevB8pbtjX2NCF4teSTRaGpG lU8Xh603l9OwjR/N87kXLh+9emfuOpwKKfOE6iUSw2FKIXiPSBhEsdCXuYj1HH2wMu FCYGGE5iO9e5X3UZMoQcNkK1CeP48W8Rs2pCKHVLXdsOvGE1y7IGWGLb/kUZQzdHae tWIgy2ocG9N2A== Received: by traversing.sirena.org.uk (Postfix, from userid 1000) id A1EA2185F3BD; Tue, 06 Oct 2026 17:31:38 +0100 (BST) Date: Tue, 6 Oct 2026 18:31:38 +0200 From: Mark Brown To: Bill Roberts Cc: Catalin Marinas , Will Deacon , Mark Rutland , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 0/2] arm64: gcs: Return -EPERM when changes are prevented by locking Message-ID: References: <20260910-arm64-gcs-lock-eperm-v1-0-d88e51855c9f@kernel.org> <8c425dac-11f0-4267-8745-d23d6391a6b1@foss.arm.com> 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="mQTRuwMjDg3vLtjl" Content-Disposition: inline In-Reply-To: <8c425dac-11f0-4267-8745-d23d6391a6b1@foss.arm.com> X-Cookie: Use the Force, Luke. --mQTRuwMjDg3vLtjl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 24, 2026 at 03:49:14PM -0500, Bill Roberts wrote: > On 10/6/26 10:15 AM, Mark Brown wrote: > > I was intending to do something soon to pull more of this code out into > > some shared place since especially for RISC-V and arm64 where they're > > using the prctl() rather than arch_prctl() interface so there's less > > reason for things to be duplicated. > Bear in mind that I do have patches out there, for x86 that enable prctl > for them as well. I looked into doing the lock check in the prctl call path > before > it gets dispatched to the arch specific backend, it does require a common > interface > into the threads feature bits that each arch would need to, trivially, > implement. Yeah, it'd be great if that could land and we could hopefully eventually end up with a shared interface for userspace. We'd still need some arch hooks no matter what, but the userspace experience would be much more pleasant. --mQTRuwMjDg3vLtjl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmrFImQACgkQJNaLcl1U h9Cixgf/Yp5k02jhKO4YyuzTdlCZv0IsZWojY0A5nuXSz/3heNezN/naEINMdnHM EYGzPw8UvpxXITQslcXZf1gUFO92Of/y10abhv1HfKAqHoYY0ij44MrDT0gEUlXJ oOKraAReQ7H1vb0mDB74Ynn6s/rM72i34Vv670IIy8JGSUWr0eY2QrdqxXadia86 F0xV3EpZ8xAcJloXGWAb0kxiDPIK56CkYcLixFWKSGS1cigDwQDawbYtvriCJASm x/0+/uKL4rVA4YP7yV3SAj46XX9SoiXrh6p6KJ8VBd7OU1NfWZIP+6xaq2/1+/A7 ktwaeE0+OBTy9CRAlr7/reVtGAKYQQ== =nqUf -----END PGP SIGNATURE----- --mQTRuwMjDg3vLtjl--