Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp576109rdb; Thu, 18 Jan 2024 11:58:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbizKPDXrTmhCWkeWL22m+QKvshJ3WC9ZdP1sIKl3+GVWWRBOb8TvQXmKZsw5KR6kv/CaO X-Received: by 2002:a05:6512:1251:b0:50e:55fc:1e2f with SMTP id fb17-20020a056512125100b0050e55fc1e2fmr76668lfb.62.1705607935912; Thu, 18 Jan 2024 11:58:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705607935; cv=pass; d=google.com; s=arc-20160816; b=YpoFGrpun+Ne5ojUbdGunaH4DbhGR7lk6ZxXrGtLg/egNIQohKWdZFY4skAwebbElw DTzT07lQ0oHfDeAIjm3S+oy1dlyIUjSN9wkUNKuERLqa4Ln1Y1771PzPNbBT5+bdyn1S B5v88hRKe+gx1ZUVtZBDmZ7s+W7P7ydnot+QBGV1jabNFGqsYt9RHvnthWtSKYrGAGoP X1HGU2YhZT1dfNxDUb+VCfwXFsYmDLYvRRI/zGuerWRASWx289aCfsVBbPiLgIuaV/2R v/MdpTwD3PMfdl3a1U5YW7Ok53+ZEuNrAQ5ABiucoh+CXfzE1bmF7qnAr/ARhegVxU8z SOdg== 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=mW1vigp3noRgU/HWknqklpZKIA85VePG83JHS0RcP1Y=; fh=2cOLKalsvJWgp6X/iQQOoa8XWKauU+XcecEfmW3UZwY=; b=gi8MoWaIXRXlMiUZv/x1nWgnHaxfzXcnLNRxOYYRPSpWkxek4jpB0Ou8kVpEhT5R18 zYH1mriL9nuYR92t+PVMyMOfQa9sBuncdbiFpE4Zevwj92BQr9MO5+IO72hUXSyKi9Mt 0Grdc1b/xMNLnwYe0sFjM4900p7Mm1pevTSdDprqVTfhc+WoVjLgyw69Jk6pX6OVXIQx Sj/XX4siKO5VaJPsGNDlemVNO8UyV7oMz8wyE9S9mTA7bJoNkZbcreYF+3tv5M2P1/I8 5gAId372cUemV6m/LrqEjMMocIN3zNLNMJ1YJL9lmCS81fA4oVb8UNaTnR+EDjQGEskg qswA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kOcnPxyT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30543-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 lz18-20020a170906fb1200b00a2c6229fd45si6576266ejb.943.2024.01.18.11.58.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 11:58:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30543-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=kOcnPxyT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30543-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 A70201F28CE5 for ; Thu, 18 Jan 2024 19:58:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D76DD2E64E; Thu, 18 Jan 2024 19:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kOcnPxyT" 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 D89772E400; Thu, 18 Jan 2024 19:58: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=1705607922; cv=none; b=am45jjnvgUxY0IbhpoMTTS2lHa8F9DmTF8fL6IOLS5KIkuyMFqEyf/RqJ8YvfGzQ3sD+X7IcB8BSs4usaR4uSpUK771GHrUX/tZfBMv/abBRKGqTAVf0j51RcFu7LUv0yleDWHWD+2MxzC2CXImUA3yPlhc3qQArLKHGjFwyvOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705607922; c=relaxed/simple; bh=dg8AYukbRIwcDM7XMhA2eAX0Vj/41D/3o41gR6bxNzE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u2EqRnVsmsXg0for47OZ0wRfNZtlvsuBIIAGRYJCMCmGzn+2RbynZ+BBhp5U11b/Q6eZwORLctC568VTYu4LCpjZPochdJbTh0Jii4b/qzVZ1OcMVCSx0FBqiXQ/nL6Q/G3SNu4GEJl0FKHt4Ecgho3DkCkJ/K5NTjQSq+64WYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kOcnPxyT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50BF7C433C7; Thu, 18 Jan 2024 19:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705607921; bh=dg8AYukbRIwcDM7XMhA2eAX0Vj/41D/3o41gR6bxNzE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kOcnPxyTNJLXDXVOtyj99VAsOk5s0Rmh83NR1a9NOgU/OF5FOi72j3zLwSt210Nus Dj4P0dm5hTDZcazYWhWxYczQmqtNTEG43VEDdUXGPSaqLmzmR97NTuw8YTekBMF+OI ldipeDxBaXKpzY0ZaRVwUQbY/pusnuaIPwFnT8vd0t+Q4pG8AH3CLYak4Z4vUn0Ub/ MDDl+enUsNxWgtsRxya+NNhRr7KdNGzGlzh7twIgvuG8k/M7SgqKtOQoy/Bk96yx28 VpimFp2KEjfb1RkRd3mdE37KHbO4bTVMjTmEalTGSdvHcEBV3FsSLG7BuKppdoTIIP riNFJwlivNLUg== Date: Thu, 18 Jan 2024 19:58:32 +0000 From: Mark Brown To: Thiago Jung Bauermann Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v7 34/39] kselftest/arm64: Add a GCS test program built with the system libc Message-ID: References: <20231122-arm64-gcs-v7-0-201c483bd775@kernel.org> <20231122-arm64-gcs-v7-34-201c483bd775@kernel.org> <875y1089i4.fsf@linaro.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="J0lYyRO8meje2xTl" Content-Disposition: inline In-Reply-To: <875y1089i4.fsf@linaro.org> X-Cookie: FEELINGS are cascading over me!!! --J0lYyRO8meje2xTl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 14, 2023 at 11:50:11PM -0300, Thiago Jung Bauermann wrote: > If I swap process_vm_readv() and process_vm_writev(), then the read > succeeds but the write fails: The writes are intended to fail, for security reasons we explicitly block this API for GCS pages. Given that process_vm_writev() is only available with similar permissions to ptrace() which does not have these restrictions this on first consideration feels like something that we should allow but it feels out of scope for this already very large series to do so so I'll fix the test. --J0lYyRO8meje2xTl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWpgucACgkQJNaLcl1U h9CYvgf5AXvQCEOJft2rRvx77RKKR6OcqHq1nMW9gq0PedqzL0bOOJ8VUxLbblGi ODi9eMUiTzx/e+/d8/7JXSG4dg6mZmDLRZlgKYdl0wYK+D4AL1jb8Xm3KRcZPTYj 9wXpkwLj3R/4slPoom0idK/+g7BmgwhhGKsmDPh279p1vXn4F3GdbFvta3KvvKB4 f8jmwIVrllAaAXZsmg2eIvTd/lvna7Oa6C3UrHqN8QYaiokebhB+fvyY5LIRx6oW a0godJWG2XN83VL3A5Mgnk2v27ewHVAAQ5MeMKBJSYwLQYNyWlh1Y6J0s7jAYmhU pQqh3jZ7jg6I1WyqsYO12yX1KYXFTw== =FSEz -----END PGP SIGNATURE----- --J0lYyRO8meje2xTl--