Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1398987rwd; Tue, 13 Jun 2023 08:37:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HFxYlY5+iYvG/kWyxkUHlDxJXhRvFXujacoqBTvZ2ewqPrD83xcCvItZD2W9rBFqwhKdf X-Received: by 2002:a05:6a21:900c:b0:11a:aba8:b2dd with SMTP id tq12-20020a056a21900c00b0011aaba8b2ddmr5861284pzb.25.1686670678178; Tue, 13 Jun 2023 08:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686670678; cv=none; d=google.com; s=arc-20160816; b=Y0AZnGtzCRhibRaVNUffxV/eJXQk82T7bNLo8HDJSNt0zMPwh4JJgBZaEAMq+Foa63 9cT2FAPI/FiCLoyhYJFzKKhHEs55yQBt6Uy0J7w7xID8Oo0oLoEETnfrbjryOJ2gd4ea KWnzqvJU7pzl9wgM6eTKaCzw3fHHVMA8lH0b+ICnjx5MQhOL7bgdxEb5KAeDEqwomlEK MhzNE5er+FtRDufiZ4MgVfa0qXOF+qSZMW7fyaSQ2rBHgmYt7u7vFpzIzE7ZUBf2VlJJ +F+HwnsG25C3tl7vyy//tJ33ZwZpSpUPeIExlONgAAcdJboDiVNcDk/sGBvA7oc+qGfX bX2w== 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=/8qbxJ7plQYQeuM2VvikPlq3lwwMbrLQyjUFfEVchnw=; b=H0Yscn0E1is9v8rt3S8Y2c0+74N4ruG9i0/AuTxfRfqJxBXxz0eBDCsDR3od8tONIE zpZwzW/yO78ksQBylZa5deOjiIWJN/EIZErGhG7qEturQWc7rkcc4ojgUuVzQk6/IRwr BgfF+z4BadgIacsK0jlMAPX4ELBH4mhJSrLyGEtUj9uI59v75vwxfQZ43nkrJ4Okp9En 3D1xSaG8SDaBnSQ78mMSs7FS3dpBeRXaadSM2EmN2GV3mHdvOGVtn4r7FjP+1cFZIg/Z CKjEKrPMalk2y6+9FNo4E3M3121CMyMzkNveTfEdNljj1jU1HvNgtwW3zH6wiPFkvVsc 97cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d3rTI8P1; 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 j184-20020a6380c1000000b0053f4a814953si6069848pgd.870.2023.06.13.08.37.45; Tue, 13 Jun 2023 08:37:58 -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=d3rTI8P1; 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 S242501AbjFMPP5 (ORCPT + 99 others); Tue, 13 Jun 2023 11:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240619AbjFMPPz (ORCPT ); Tue, 13 Jun 2023 11:15:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40BBD118; Tue, 13 Jun 2023 08:15:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 44AF662EA4; Tue, 13 Jun 2023 15:15:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDDEFC433F0; Tue, 13 Jun 2023 15:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686669344; bh=/rl23s8079daMc/L5xKX5HaxFBpVGzkrwZXcRhgrzUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d3rTI8P1B/ZQkdGFSOLmBZfHDc0v1qUD5ReW/6vIFrV7gdzkt39bZ2f0RXKWqznCP mak7dZUd/dZLoXk+ERH4/Z/OVpJCuCJ7PW860UL+CYqnIPUIQyoC7A3eHZs9TtLQr5 RAcdJKHXTcUwcaKJtteJrUAQtkyCrHBuDuh0abZfKzX5Kg9LVT8FJEMv7uVGPNXJR/ NjAx9gqLWqqJe5OVYmp9Z/fs5MfA6nBNw0SBJf4UIrswTkNexThtVewvq7yM5qWje8 AQzZV7HczX0LzsXj27rMLtOQ5REMxlatnITnkxaqLgbald+Ki8/N1aEqxZnChb+Bp7 fqdF79Ugiy5uQ== Date: Tue, 13 Jun 2023 16:15:31 +0100 From: Mark Brown To: Florian Weimer Cc: Rick Edgecombe , x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , Weijiang Yang , "Kirill A . Shutemov" , John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, akpm@linux-foundation.org, Andrew.Cooper3@citrix.com, christina.schimpe@intel.com, david@redhat.com, debug@rivosinc.com, szabolcs.nagy@arm.com, torvalds@linux-foundation.org, Yu-cheng Yu , Pengfei Xu Subject: Re: [PATCH v9 23/42] Documentation/x86: Add CET shadow stack description Message-ID: <1f04fa59-6ca9-4f18-b138-6c33e164b6c2@sirena.org.uk> References: <20230613001108.3040476-1-rick.p.edgecombe@intel.com> <20230613001108.3040476-24-rick.p.edgecombe@intel.com> <0b7cae2a-ae5b-40d8-9ae7-10aea5a57fd6@sirena.org.uk> <87y1knh729.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CHHivuSQNQZBIb3Y" Content-Disposition: inline In-Reply-To: <87y1knh729.fsf@oldenburg.str.redhat.com> X-Cookie: Not a flying toy. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --CHHivuSQNQZBIb3Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 13, 2023 at 02:37:18PM +0200, Florian Weimer wrote: > > I appreciate it's very late in the development of this series but given > > that there are very similar features on both arm64 and riscv would it > > make sense to make these just regular prctl()s, arch_prctl() isn't used > > on other architectures and it'd reduce the amount of arch specific work > > that userspace needs to do if the interface is shared. > Has the Arm feature been fully disclosed? Unfortunately no, it's not yet been folded into the ARM. The system registers and instructions are in the latest XML releases but that's not the full story. > I would expect the integration with stack switching and unwinding > differs between architectures even if the core mechanism is similar. > It's probably tempting to handle shadow stack placement differently, > too. Yeah, there's likely to be some differences (though given the amount of discussion on the x86 implementation I'm trying to follow the decisions there as much as reasonable on the basis that we should hopefully come to the same conclusions). It seemed worth mentioning as a needless bump, OTOH I defninitely don't see it as critical. --CHHivuSQNQZBIb3Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSIiBMACgkQJNaLcl1U h9DYKAf/Vz3wx22uDdLyCBpiG7PQdfsvx6Gsa3OkqligILXiOR/RqMgrq58a10CL 1Y83LNYyJWuUw541NRW64qugDHs9G2NwIpxrgeD3mBQibPyJoJyFsEOia0VFOvB/ jEcMyC/PLUl6W0LBP7P/tyDcf6UyZY5mhI32w4k5JHImx4iNswSTcS5bEMrkbs/J wcEZi8RTKT6XeWHM1Y7Ky3oQax1I8b1G3pzGa6WK0c5fNstN0QRY6hpMFKknp1sR yygF1dgoS3kygw4ZeBsmpkmGJKETDGsCpqteh2JQ7XV2i2kEJe8IeOD/NAcPl43V Sovm7EiMjuwISm0hPggYtQ+vsFGHrg== =tl5C -----END PGP SIGNATURE----- --CHHivuSQNQZBIb3Y--