Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1965555rdb; Tue, 3 Oct 2023 06:38:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZSZlza6DywgRc6dQkzuM6dC5Td9DrVUA9JL1qdpFDH+9D+q+Odu09VkVyJ2sbgQ9TSK8a X-Received: by 2002:a05:6a20:2447:b0:14c:5fa6:e308 with SMTP id t7-20020a056a20244700b0014c5fa6e308mr14552851pzc.43.1696340305829; Tue, 03 Oct 2023 06:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696340305; cv=none; d=google.com; s=arc-20160816; b=aFHct3wq69NPDJcyxWbd8mqf2g1CZ5zff4WamPQf6COhY8fzOyMSJmozTVe+B1q2qR jdSgl+9IYYBWgW5ZcLNrbiqGSISvRYNotuJe7vhrLNIXtcRm0Nzxz6QLX7Lxbu1UPuIO FBbF3Zhz+nclEO1JXD7XXHjk9GVPTtTlmi4ldAKHcfVbhcbJxob9gq+KG7dTBW1L1j80 M6U9YX3PSOP30NNY+K+Mf+p7JQLyjKC8ajNlBYn7wYU5rwz5QwJF4wPNswRUD9EB0lxp ApccWwyxfuZJNRGaHS5vMWkPS1yWbbxpboUpDVEEM0kX2Kj9fnGQ3DqV0RxhGDoiIH7R WKkA== 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=uwtqnUxTMKbAVfD+gZWXN+2nSoPSgsCGQxxJs5nbdeo=; fh=3LyBviRwhI0uiTVAuicNV8yvtQqW5wj/ln849LuxOsQ=; b=EjtRm/EYL8p7OwBVIUdZMy23rpqn2lzaNfQcGqEXEcKhkFVeglVPgiWaZFIrSiuUV+ n6j4BgyNzXUGEqbMtttLlU4SWj/kxkp3/Tv0feu1BQTpZ3T4jlUSndOovgGMGrI4sc2M jQbbJ2LiG3vXTnDQy8pCYjvRhRjEH/Y4YkpHlX+6KxY4Hzv9cdxYsHDAdr0fm+F7SRLs RtdTeM/270TnwwURWyKPFG1TopbK6dMZzXpxb01wX7WJslg/OVDBYurWRF5aSbPtZuh7 CdoDRM73Ih604f3Q2rrWrKJb9BUh2cgxOG4MtzGyzuzwBHxRVa5Of1hnMGZXA9i+xsp1 OJzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hmdjXMqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d21-20020a056a00199500b0068fef37e5bdsi1528896pfl.244.2023.10.03.06.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hmdjXMqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B9B80829BD76; Tue, 3 Oct 2023 06:38:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236301AbjJCNiT (ORCPT + 99 others); Tue, 3 Oct 2023 09:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232653AbjJCNiQ (ORCPT ); Tue, 3 Oct 2023 09:38:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F82A9; Tue, 3 Oct 2023 06:38:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B35ABC433C7; Tue, 3 Oct 2023 13:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696340293; bh=uwtqnUxTMKbAVfD+gZWXN+2nSoPSgsCGQxxJs5nbdeo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hmdjXMqXyZeGSvyuQRufMD+IbooZlHt4Fl+2QKKDFRxTKFWqLtibJL9fD2WNsXRqn PpPdqOp7OhH7MsubfkpS6TMDyTKN/AeMfpIWAAhKiHBW6JEQ3eVUvzKQho+r0c73bq uSoe4cVF/Qi/iaTEhllRcf5K1O5CZiHLBq7R6bewNsL3AMIX0hrDkyw4IamVbeEUVY H7fYoWgMgUl9JjkhObUuvSdL4RBWAerpg148lOtgda7gOTMm7ojp6Djmbc+MxP93EK lDx842uWlD4YM9qLneth2OoHkxGe3TPPF+PSAUpxItWZWQKpSHLSND54oimTw+6Bas PVQHDSsJ52lWQ== Date: Tue, 3 Oct 2023 14:38:02 +0100 From: Mark Brown To: "Edgecombe, Rick P" Cc: "Szabolcs.Nagy@arm.com" , "corbet@lwn.net" , "ardb@kernel.org" , "maz@kernel.org" , "shuah@kernel.org" , "linux-kernel@vger.kernel.org" , "keescook@chromium.org" , "james.morse@arm.com" , "debug@rivosinc.com" , "akpm@linux-foundation.org" , "palmer@dabbelt.com" , "catalin.marinas@arm.com" , "hjl.tools@gmail.com" , "paul.walmsley@sifive.com" , "linux-mm@kvack.org" , "aou@eecs.berkeley.edu" , "oleg@redhat.com" , "arnd@arndb.de" , "ebiederm@xmission.com" , "will@kernel.org" , "suzuki.poulose@arm.com" , "kvmarm@lists.linux.dev" , "linux-doc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-fsdevel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "linux-arch@vger.kernel.org" , "oliver.upton@linux.dev" , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v4 03/36] arm64/gcs: Document the ABI for Guarded Control Stacks Message-ID: <3985b0d8-e35e-4cd5-a2bd-6a16d7c7e559@sirena.org.uk> References: <43ec219d-bf20-47b8-a5f8-32bc3b64d487@sirena.org.uk> <38edb5c3-367e-4ab7-8cb7-aa1a5c0e330c@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VOYoYIe/0D3GI3W0" Content-Disposition: inline In-Reply-To: X-Cookie: Oh Dad! We're ALL Devo! X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:38:25 -0700 (PDT) --VOYoYIe/0D3GI3W0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 02, 2023 at 09:43:25PM +0000, Edgecombe, Rick P wrote: > If ARM is thinking of doing things differently than x86, you might > think about how you weight those tradeoffs. Like, it might be silly to > worry about clone() support if something else ends up breaking > compatibility majorly. But, it might be worthwhile it you end up going > to the proposed extremes around signal alt stacks, to maximize > compatibility Yeah, I think Catalin's thinking here was that we're quite a way out =66rom actual hardware so it's much more tractable to fix up callers than it is for x86 where the hardware is widely available. > Also then maybe x86 could copy the ARM ABI some day, if it ends up > chasing the tradeoff people prefer. It probably goes without saying > that the closer these features behave from the app developer > perspective, the better. So a different ABI than x86 that also targets > a mix would be a bit unfortunate. (not the end of the world though) If nothing else even if we end up being stricter about things it would be extremely disappointing if we ended up with something where code for arm64 won't run when built for x86. --VOYoYIe/0D3GI3W0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUcGToACgkQJNaLcl1U h9DGrwf/e1Q1mca/c+Y8gjB9uTmkbz6UTxEP5Ie+SQ8OHE0DeQjg4wUgWFKyhONR Gja5KPwSLlu7n1otNu8P3ztqCLwd3+sa1yM4Tzhq965l/wqp1cmwh3OcRJwWNO/w TzGqD8fnAAZY6EyfMg6oP8IcWvD1ru5jttF18YdJdekWjBGQyWI+aZaN8ERdT1hG 8G2Jz0DOJCCRuMo4JWQQ7wyKmgXsaCsO0UeTLsniZYatysygBlZPnxwG+kSlwwrP jJwDtljE9WONcZZttwNT0Rn/dFpXj4cO5L0RjHX/HPvHmSwOgdnO4fBD2HSL53xL WSStamx5uiW/Ch8ilcxeRdcT+rL/Jw== =Wyj+ -----END PGP SIGNATURE----- --VOYoYIe/0D3GI3W0--