Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26586490rwd; Mon, 3 Jul 2023 11:46:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1fYJNPQa1cpXyNXDO4vHz3mkZkD0s1f2I0vXfm1Z9AbvG/e9hsGdslTltWa3y1iMKMWNJ X-Received: by 2002:a17:902:c40c:b0:1b8:8dbd:e1a0 with SMTP id k12-20020a170902c40c00b001b88dbde1a0mr6728589plk.13.1688409964752; Mon, 03 Jul 2023 11:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409964; cv=none; d=google.com; s=arc-20160816; b=r6W9+AstI9UL13q36I7P+dGFCdAyrZdduYAzj+LyriZaknr1Td3d6NI2Eqa9dUjDeH 3YR5knkXcgAidnpmm0i7MDPe0W05v1DYi6jygnm+m6xhPGhgSh5Pbuk9TSO3JNmmu+vZ cdzGW3hLTdw9gDn3pjo9ed7m0qSal0ADzTVcNOiqDCmw3TjyMaRD4/6O6kPpqNbc2Ivq lqAibmaq37unwQujXpVPaygtHBo6u1ON/j4QDZ20nN4jWT3eqxX9QYAsOnA1oY2uPG6e gYmpUVZkA+e2KfxbYJ3dD5aHE6MZfvH16ZNs+GVgQVDh9J7h5tHAWVpYX2VYIccHMiB0 skiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PbN14/Dkbpb3I7UfEf+MueR7WvA16x243pRvsQ4xVeo=; fh=1r0y676jAvRjm+cx0CPnBJ9e2/pKLLxDnCfQpxGiGqU=; b=tSiRzyoA3T1+CiIBfYV8nQPn+OZ3qPae0PuyA4UgLu2Hf5IIWWZhW8xRjXikm7XCa+ PmNJEH9A8MhwPMzhUp0LYPBCpIdpMVX1X+AATs90EQV8xbQtko03ZeiyhZbi4u5Z1D/b vbHM+GW9YpTovXIwO7lDZyjhudF4iaylz1CdVuCMnK2cPuWlIhzjzyHZn8E9aw1ukr/S Wr3YhEI2NnBVuiQZb4ewccrFUvPZtU+jpfXKiWZ6xQw4O77i4acVj9Czm789ihw5Lr3v cLyJB/J8gCeurpPl/kQRhKpamYVweOTChBO36PxBIv2/772A7f6vB1iNcFM3AKSEg1Ec iHuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IP9Zm1Vo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902d48900b001b8922e839fsi3437610plg.314.2023.07.03.11.45.50; Mon, 03 Jul 2023 11:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IP9Zm1Vo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbjGCSiT (ORCPT + 99 others); Mon, 3 Jul 2023 14:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjGCSiS (ORCPT ); Mon, 3 Jul 2023 14:38:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9AB137; Mon, 3 Jul 2023 11:38:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4F12D60FE8; Mon, 3 Jul 2023 18:38:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6C75C433C7; Mon, 3 Jul 2023 18:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688409496; bh=PbN14/Dkbpb3I7UfEf+MueR7WvA16x243pRvsQ4xVeo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IP9Zm1Vo4XMFzACthKdt1xgOwg0m9L9tlji7BKPeJcis8lKBigCHCRtnjD95b4fHx nGGMrg9l2I85k1vWsK4aGYArlT9ir15Au9ef6D+a8NxdOiEYRyZvWeGhqpASDcRTU+ YieQ/Q1Oy4EVXg543ID0BT5aubS371dhCIjsUdH1woiQr0g6BSp7CdhhHjbr/PHiNN GuW2eD9li2WNGp8z1rEAjfbIiBrVpeRAedUejWTBcxmBs+IMfWGYxsjkyW5lAk6+jL 2hkwwIocL+upa2WIaiqFCWhvtyVZMPR91PFU67VVZbFBsgCS0IbtjYp0lJdZ34HT29 cP6GAaCvm974g== Date: Mon, 3 Jul 2023 19:38:04 +0100 From: Mark Brown To: "szabolcs.nagy@arm.com" Cc: "Edgecombe, Rick P" , "Lutomirski, Andy" , "Xu, Pengfei" , "tglx@linutronix.de" , "linux-arch@vger.kernel.org" , "kcc@google.com" , "nadav.amit@gmail.com" , "kirill.shutemov@linux.intel.com" , "david@redhat.com" , "Schimpe, Christina" , "akpm@linux-foundation.org" , "peterz@infradead.org" , "corbet@lwn.net" , "nd@arm.com" , "jannh@google.com" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "debug@rivosinc.com" , "bp@alien8.de" , "rdunlap@infradead.org" , "linux-api@vger.kernel.org" , "rppt@kernel.org" , "jamorris@linux.microsoft.com" , "pavel@ucw.cz" , "john.allen@amd.com" , "bsingharora@gmail.com" , "mike.kravetz@oracle.com" , "dethoma@microsoft.com" , "andrew.cooper3@citrix.com" , "oleg@redhat.com" , "keescook@chromium.org" , "gorcunov@gmail.com" , "arnd@arndb.de" , "Yu, Yu-cheng" , "fweimer@redhat.com" , "hpa@zytor.com" , "mingo@redhat.com" , "hjl.tools@gmail.com" , "linux-mm@kvack.org" , "Syromiatnikov, Eugene" , "Yang, Weijiang" , "linux-doc@vger.kernel.org" , "dave.hansen@linux.intel.com" , "Torvalds, Linus" , "Eranian, Stephane" Subject: Re: [PATCH v9 23/42] Documentation/x86: Add CET shadow stack description Message-ID: <16147d5c-3f4c-4be0-8af1-9cd34d010363@sirena.org.uk> References: <1cd67ae45fc379fd82d2745190e4caf74e67499e.camel@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D5fPsWucXka/TR0l" Content-Disposition: inline In-Reply-To: X-Cookie: Please go away. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --D5fPsWucXka/TR0l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 03, 2023 at 07:19:00PM +0100, szabolcs.nagy@arm.com wrote: > The 07/02/2023 18:03, Edgecombe, Rick P wrote: > > 3. Support more options for shadow stack sizing. (I think you are > > referring to this conversation: > > https://lore.kernel.org/lkml/ZAIgrXQ4670gxlE4@arm.com/). I don't see > > why this is needed for the base implementation. If ARM wants to add a > > new rlimit or clone variant, I don't see why x86 can't support it > > later. > i think it can be added later. > but it may be important for deployment on some platforms, since a > libc (or other language runtime) may want to set the shadow stack > size differently than the kernel default, because I agree that this can be deferred to later, so long as we err on the side of large stacks now we can provide an additional limit without confusing things. --D5fPsWucXka/TR0l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSjFYsACgkQJNaLcl1U h9BYQwgAhRm5MgFMw8EWJtEyiQ4CP2w9dpB5HKwcEwXRO4LTusw+Rm1ZD+UHy/od nFrB/LuHxH11pDwa/T80iFHemMyEV8OyoTKsxX8VaQKp+9n2H6lq7J4+rujJFoMV uPrq7opwtLLgu8L8JXUC9SCTXETmiKzEK+YXfN1PvS2BzMKN0RFrzIh8LQ+E20Q8 JBRT4vsKJpQN63kUHGHl/2WgP/f6H+qeEapyXuaNa49uRsr0j2BE26xUOGB+K39U zoPbUSo27naEGpLCHPRDDPQxz3PowV3hXvLoVHa0nBgBlfEbMGzaJxtiqrwAYKvy i6I+y/Thvht3Bain7j8d4Pw/bQhawQ== =xDQQ -----END PGP SIGNATURE----- --D5fPsWucXka/TR0l--