Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2528980rdb; Wed, 21 Feb 2024 10:16:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWxB2bR02YP1ELnqd8Ac2nSlc23bU6DxnwAZ1AadsjY0B1OvlxglA2QFcExdCCLGXl5IMH4CMoaAG3xCk3UCwjOhX8dFc6QeTofXx1y1Q== X-Google-Smtp-Source: AGHT+IG1vCTm7BFZkcgdnzp4XUXH7dscYeaiF0aGR9uKlpUwrF93WBV9La6Tc1cvaJCzRA/5jYOP X-Received: by 2002:a17:906:b80e:b0:a3f:1557:1410 with SMTP id dv14-20020a170906b80e00b00a3f15571410mr3543648ejb.28.1708539417926; Wed, 21 Feb 2024 10:16:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708539417; cv=pass; d=google.com; s=arc-20160816; b=Ut+ITkvYxyLh5hJpzfwIHaJv0H+3vkvBPceRgFT9QhzQFSUM8L8/zLLAsvTzGVoN/X lzH14nWmKDtRNxbSwLF9xdvnkzKPSpZeLDw+i+kvnvpq/V+EiZoW/Ry8zzUnBHly+51L JtUHyFoGXUAXACzOa76PcYLbAIBGIbsuZLhzeMSXASvIZQ4ZxzVSMUCxP/pffzJusTKC Gvek7PiMH3jqPZcHMNqaP9JdPpHGTo6MlmfyLF2/+sC+mj6wF2iR3Glgct3+BAAXr9Cw 9L/rrWclR86GP/0e7oKL1qgJ9lqJ1DPQtJPOmYTvmsSPiTPPnFJYEbxWmAutLvVxJpZA Q45w== 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=A8Qcl72uGeu6oSk4l2nPNGugeG7birjvFdE4xpMQm38=; fh=2cOLKalsvJWgp6X/iQQOoa8XWKauU+XcecEfmW3UZwY=; b=ddnHfqSkDtAaNwtz9iQ9nq00aq7tLT32P1kDYrjZXS/IqweXk0/TRUpQj+3YyIKCr6 P/HoFLGIbqpJnLblZ0pzWwJ5P4UIu3eVBG8U/JZBM2T2VXgOwyvGn48VSroNb1MTUpaa ep5tofriTD1n4f0zzAlMRp7zRYOgEGFg38gFnaILZIG0azQAoebuOsQt+T2K/SyM1pYN nGaEFHrXQe2Kp8CjjBoTxLStEkIPAqsRjnmyKH4dNjCg/aoAT5LvHp2QdPkikomUKGNy /7ms6qbF0zTT542bULKpq8RujbLZUukvCedhE+wWX0P0oBgoQ745Gkn9pdrxWBVv/ynZ fmYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ov6cm/hg"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75258-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75258-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 m17-20020a170906235100b00a3e3c7a2e92si3938532eja.942.2024.02.21.10.16.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 10:16:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75258-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="Ov6cm/hg"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75258-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75258-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 A795B1F2280F for ; Wed, 21 Feb 2024 18:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0236985290; Wed, 21 Feb 2024 18:16:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ov6cm/hg" 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 1634942A8B; Wed, 21 Feb 2024 18:16:46 +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=1708539407; cv=none; b=NzaBqxI7wnYIq0Ksu4Ehda6RGB+yFjIxcK004WADPESsyGSGPPO9hT/G55JwOO1LxIDKaHiDYlUaMiLy2xGSYaes/ObjZaaTsxRPopxvOWAwQ9D7tYHBemKc7X49km3bNYLHd3F0+XeyDfGRp3VogRS1C8mGpX3La5yedZpxryc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708539407; c=relaxed/simple; bh=csK/DsyAOVnlfATFEXn3F2y/yVFcNC3OQEkT5JeAyec=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QETOAmcgOuVTIdhj/j0sjngR3fPaEYLjLe1XHAIXz5zdrTNLa2UPx/r9UDBZO8YsM2z+FT8fnd0vvHjh+xeKEGiW2/CcBuRqSVdJBBpZQUuu1OVNfbJnUS2U/JNyz6AiE7kci9IfjGO4vqGuiLHTGdwHUp+TmcbDhKXIOCSFglI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ov6cm/hg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBCEEC433F1; Wed, 21 Feb 2024 18:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708539406; bh=csK/DsyAOVnlfATFEXn3F2y/yVFcNC3OQEkT5JeAyec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ov6cm/hg2mleRWqUd3r9/W+rkcAFVU7c27Hx8hcFb4M7UnzZrk5N2v269pkhvIIp6 bYnBdTUndPV/TFw7qV/WyGz5Y5QL0nzqxYt/dpw22VmM8LawYB+liEKK4qt6TGiyDk QjYeo/CJfpAl1TAZ9ES5BuQc1+oqqSXYqQ4XvqrYCwSuthuV4CUrHLGWw1uQydZLOx AwoNAI6RkOBmr3gjndpgIT+LOuOI9T5Q22ViTkf+qm8p7en2UwVaM3vLN4MN3sD7yL 3uBtCIJ1v9SEg1kQuOc2Sf9OQiw+ZsqkoXTxilnmDq1+1x53S/cyRAhhlK17+JAJew /3/DRkmjzoJ7g== Date: Wed, 21 Feb 2024 18:16:36 +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 v8 20/38] arm64/gcs: Ensure that new threads have a GCS Message-ID: <9400cfc3-0e87-4abd-afbc-172736d77a1b@sirena.org.uk> References: <20240203-arm64-gcs-v8-0-c9fec77673ef@kernel.org> <20240203-arm64-gcs-v8-20-c9fec77673ef@kernel.org> <874je399ld.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="kWxKAN+nLkxhoap7" Content-Disposition: inline In-Reply-To: <874je399ld.fsf@linaro.org> X-Cookie: The second best policy is dishonesty. --kWxKAN+nLkxhoap7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 19, 2024 at 11:02:22PM -0300, Thiago Jung Bauermann wrote: > Mark Brown writes: > > + gcspr_el0 = addr + size - (2 * sizeof(u64)); > > + if (!gcs_consume_token(tsk, gcspr_el0)) { > Should this code validate the end of stack marker? Or doesn't it matter > whether the marker is correct or not? I don't think we specifically care, we're just looking for a token here. --kWxKAN+nLkxhoap7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXWPgMACgkQJNaLcl1U h9BotQf9GJn/XYpiDfL/lza1ZizUnGoNmGMVjrNpXn5ZUEXw+EsNed40zfVPg2As MDBjwYmG0UWQjuOimqAPlqsQL2hNSgmuQpeOCdUJXv2+/WBRUOfix+1xhtnPUUlf VWqNyLLSjFbbzOAmYFiN1HTJkHsSs8FHbtskrWealJQ/wV+6GLXjkz4cP7dP84lL IZOifB9YSPxwaW7RKUtEJ3D6CfX0xZhD5eahzIbO4E74kha8flAy/1AuHvtlI/+O 0oN9+6kUfQNptazvZMa8wZib2BDF1ORpASOrzn+hmFWgoUD2j2wbkMt/E8sH9ckT HygbfdF0QU3Xk7fxczBPUTsczeTLeA== =2YH/ -----END PGP SIGNATURE----- --kWxKAN+nLkxhoap7--