Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp6054380rwb; Tue, 1 Aug 2023 11:32:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlHE60P64sP1rEFAI0XTSBP+0hzMZJhj6BwhhPAa3WxZ+wcl41nuWTDRC/Lm4nZ8QchLkcCn X-Received: by 2002:a17:902:b60a:b0:1b8:9b1d:9e24 with SMTP id b10-20020a170902b60a00b001b89b1d9e24mr12748738pls.22.1690914742769; Tue, 01 Aug 2023 11:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690914742; cv=none; d=google.com; s=arc-20160816; b=M/5v61/qT6lOQaZ6IG5E0KnRJc/abW0LnPF7HF2RYfqz/nIZNF2k7CK03XAETe34Kh 3jKH3fYDSNrjuTO6tgYXKPoIJ6Hen2sRWHMEUMt0tkQAz0g62x8qpaB76tBYUIET/Zse FzzXnfStVjhuz/WVPbKF/t3AdQlcyOJlw2jcv1LGWm8XnaPgTVsVgtPG/8gT9G08nhJw 0tU6/utG7IPcOPFlAWPjNMGbhvkV/vOSybFEEnUD+3VAe5fdEfbFL8Oyfo9w8q9mcfhO nVYeoiMSoVaxUoc+x9V32Yeyk+ee8yWhh8O1umgTroTEcVSATrkdRrHtdrya44yIQl/A 16OA== 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=t4H5U4PdS9V7b/INAz2Uy/vEVIT0Xt3TQ516E4LoedE=; fh=a4kAwZYMnj7NzdqwUrZjrN9zb7qnGyKhrSZMguQAR64=; b=NKqp2IuOj/6hvTw5vWpXMGzdYBR1YYHunn3dLozjnZy1etcXj715e2Us+Spx3AAMk8 e+6MuflxbZzjSvU68gKGiughdJKoXWKdxPWQnURrurm9MzZNN5osvEa8F08vapL+enzS thJIr3l+A9dMIxLvxybjDAHwbQoCOKPREA0cH13+3kLfmHv4S9JMlDhdaLr0qp2jgnAF JjZSGMuWcBzkMEdyoUxFmrS8wID0t+MKn1M2nEKm9rczEsVYY557ifi3cg3PnUQIaoLe UMDqfU0OqqJaKGmyel1XXYELFNP2cme57TWIXUyKeHEldWBh9eWCZWQE5Hlvgu0I+q0k naEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eb+N0V+1; 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 q9-20020a17090311c900b001b9e9edea43si8264695plh.552.2023.08.01.11.32.09; Tue, 01 Aug 2023 11:32:22 -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=eb+N0V+1; 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 S229824AbjHASDt (ORCPT + 99 others); Tue, 1 Aug 2023 14:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjHASDq (ORCPT ); Tue, 1 Aug 2023 14:03:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C03D212A; Tue, 1 Aug 2023 11:03:41 -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 6B42461554; Tue, 1 Aug 2023 18:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA578C433C7; Tue, 1 Aug 2023 18:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690913020; bh=t4H5U4PdS9V7b/INAz2Uy/vEVIT0Xt3TQ516E4LoedE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eb+N0V+12cPD0i8TS0jZxiFvWkwxmipgCkdOFw6ouNtBI/NQVs2BFc7sHUmrpwyCh VuoPO7d74PzyBkkFiDMg3YcFzKCgYOEr01eQHqzHDI9cESZlowMv4HcxuyUscedv6w S1CAHXieY6gOG3NZLDdYRyuIxU6uHN5a1douIJAOmXNjepUt5/KdUwH1d/CL2758rE dQeE/68pY2slNKM6bss4odlurVY3vXKs4+gbUXXzYCpz4QGJBcUcjx9ChA26G6Tgm3 MNL8f8jAH07J0XewHxoZ5jsLgMq+M+ewSxv/p30AaJ5aQACGjnfruGfm5XA0k+CruF cD3DmFo0iCa3g== Date: Tue, 1 Aug 2023 19:03:31 +0100 From: Mark Brown To: Mike Rapoport Cc: "Edgecombe, Rick P" , "corbet@lwn.net" , "ardb@kernel.org" , "keescook@chromium.org" , "Szabolcs.Nagy@arm.com" , "shuah@kernel.org" , "maz@kernel.org" , "james.morse@arm.com" , "debug@rivosinc.com" , "aou@eecs.berkeley.edu" , "linux-kernel@vger.kernel.org" , "catalin.marinas@arm.com" , "hjl.tools@gmail.com" , "paul.walmsley@sifive.com" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "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-fsdevel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kselftest@vger.kernel.org" , "linux-arch@vger.kernel.org" , "oliver.upton@linux.dev" , "linux-riscv@lists.infradead.org" , "palmer@dabbelt.com" Subject: Re: [PATCH v3 21/36] arm64/mm: Implement map_shadow_stack() Message-ID: <1237441e-3e1a-4682-b3bf-face931640d3@sirena.org.uk> References: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> <20230731-arm64-gcs-v3-21-cddf9f980d98@kernel.org> <5461c56cf4896f18bddaa66c3beec7b909fc8fb9.camel@intel.com> <0a6c90d6-f790-4036-a364-d4761fdd0e95@sirena.org.uk> <21d7e814-8608-40ce-b5d3-401f2110ad91@sirena.org.uk> <20230801172814.GD2607694@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p8glKsiXtjodSLAk" Content-Disposition: inline In-Reply-To: <20230801172814.GD2607694@kernel.org> X-Cookie: I thought YOU silenced the guard! 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 --p8glKsiXtjodSLAk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 01, 2023 at 08:28:14PM +0300, Mike Rapoport wrote: > On Tue, Aug 01, 2023 at 05:07:00PM +0000, Edgecombe, Rick P wrote: > > So the question is not what mode should arm support, but should we have > > the flags match between x86 and ARM? > What if the flag will be called, say, SHADOW_STACK_DEFAULT_INIT? > Then each arch can push whatever it likes to and from the userspace > perspective the shadow stack will have some basic init state, no matter > what architecture it is. x86 might have some fun with that and the existing userspace binaries... --p8glKsiXtjodSLAk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTJSPIACgkQJNaLcl1U h9BcMwf+KLcNdiJZ3DEJDS8jRNNMVfxtKYOXlc4QIY6Iix9aZ5E6QB8ZJoOmkK4Y qzBMySqHh+SYZsz1IZrt/AhsMcuw1HiwbzI+Y53c+2QIMGd+u5Zfc+mSWY9chJwB DCahxNQc58D+byBBjeLqKGO4v+/3LNP/Nd/EaTGd0zUHqlAS7oR6akGoHXOJy7or 5ZdHWcz7zRa3UazK6OiMaZYx8SifMmktj3HWTWgAapS+8ChVCEGkfSGgb4gvY80w zz2JPXJH2eXtVtUQGw4kzcc8pSO6kV/PPQPKeNLuA5py1yTRZrGGF4O8r7xNmr6r Qlx6pESKFYL7k0n9AKbLsqetNG4l7w== =b0mD -----END PGP SIGNATURE----- --p8glKsiXtjodSLAk--