Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5884514rwb; Tue, 1 Aug 2023 09:09:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYrrqlf87XY9bV1ZspENZEJthbWhR6PHOe5mzDy0QqCZe+pDzrLHfYoAbNj49YX/2qFExM X-Received: by 2002:a05:6a00:130f:b0:668:8705:57dd with SMTP id j15-20020a056a00130f00b00668870557ddmr12477234pfu.28.1690906150229; Tue, 01 Aug 2023 09:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690906150; cv=none; d=google.com; s=arc-20160816; b=XDYhUvuM3JqfNu/TSkFNsaL473eqg7uaPDd+N6Vs4qLveE8A558jn08rzTYOYyeEyO meNU/T+0AeXiFNH7NjXMKpiLzab2bC5cyQjHJv0ullyT8kGO1q/r6RiIfwc3u41UNuns QEaSIaeMsD7+R3+CKR+O2c3S7luyQfAcm536kEThNMALu/k2nrhIExZMbfblObK8sVqP e3YSl4Knnf1Zkqm2pUTYiih2izse8bKK1E8XwN82kT+zxt6LpKQowGhb6iEifEy1EjRd 3AvLQZHkRsWeWTxn/WeIFzS5yYbj24ryI2MQ3RNsJv1aV2p06u6Q9Dri0kNAIIaqCtUF UYgg== 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=6y9kHOvndQhpAyCDEStD9S1PgdaYKjoRe80k+MEnFXg=; fh=f5Z/zpwTUKZQeqgHwnp8lqvOc5igiNm6Am/43KeGQXc=; b=rzNHi3pKCjstNkvEi8Lbm9pyuBB+A72+2xpeUHiM1Mj6IKoxcGknm9z2hezPbIl4YY GMjr++Y298jCCtG1+YGl2V5pibuAxnGZSOggeZeAjut46IkvCsrsLVPdpkSrAlnqzq5h tFRC/07CkEruRv6M5TwZw3q8ofNRPUcovbfZmrwfMe3w27BaULnf4Ip2Z3ppoA3C/D7V Iy9PgzuELZ+AW0OP6hIrwYXk08DYyWbSMRmlcGr9ANOxcJmjU8xd9A6RDwK9HhoxSzvL xjdGTVFImqo2v9583X4ufVcHJQcyi4tX3HjRTlnPlYsSYC2XkUvOnpHqofwS8oMrUENF RrXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r8zuzbiI; 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 82-20020a630155000000b0056387b40590si9333866pgb.798.2023.08.01.09.08.41; Tue, 01 Aug 2023 09:09:10 -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=r8zuzbiI; 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 S234625AbjHAPKL (ORCPT + 99 others); Tue, 1 Aug 2023 11:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjHAPKJ (ORCPT ); Tue, 1 Aug 2023 11:10:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCE01B1; Tue, 1 Aug 2023 08:10:08 -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 7863E615D9; Tue, 1 Aug 2023 15:10:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8ABAC433C7; Tue, 1 Aug 2023 15:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690902607; bh=+bBPLGmDmXfC/yfM3zDVF6K5Ga/agNFu5ARhnA02LuA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r8zuzbiIsBm8TplmUwNtJnkj0WqQ7Bj07Nu9yp5ar/EYSV4LQQ3uL73ELCG1L41jq YvuaYQlYhxf9lYlvrNjTqqiK+hh/mmVXlCFhYNKELooEaDF+I16iw9dkxuoVH8Tf4r MMzAnPUycWbbea6niD+2vJ7S6VYgMcnxfQ/W8n2WzYs3ch5uSe4487LN6555t9Fsr1 MEStdbDlfoeEftOw+xyV2O2Pyy2neIm2BVU9icTY0M0HKHFlx8zXeaGqKT88HFeDBP 24CXRV2GJ39ZT5XdVsrhKrH4rhJNw34F9/DVHpaPG+sd+VlTEmdea7RgrgWKh2lT9O L985DdCd9UJCA== Date: Tue, 1 Aug 2023 16:09:58 +0100 From: Mark Brown To: Will Deacon Cc: Catalin Marinas , 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 , 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 v3 00/36] arm64/gcs: Provide support for GCS in userspace Message-ID: <09b7a94d-cc88-4372-85de-52db26bc2daf@sirena.org.uk> References: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> <20230801141319.GC26253@willie-the-truck> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eVo2yRFuK2CxHWEO" Content-Disposition: inline In-Reply-To: <20230801141319.GC26253@willie-the-truck> X-Cookie: I thought YOU silenced the guard! 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,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 --eVo2yRFuK2CxHWEO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 01, 2023 at 03:13:20PM +0100, Will Deacon wrote: > On Mon, Jul 31, 2023 at 02:43:09PM +0100, Mark Brown wrote: > > The arm64 Guarded Control Stack (GCS) feature provides support for > > hardware protected stacks of return addresses, intended to provide > > hardening against return oriented programming (ROP) attacks and to make > > it easier to gather call stacks for applications such as profiling. > Why is this better than Clang's software shadow stack implementation? It > would be nice to see some justification behind adding all this, rather > than it being an architectural tick-box exercise. Mainly that it's hardware enforced (as the quoted paragraph says). This makes it harder to attack, and hopefully it's also a bit faster (how measurable that might be will be an open question, but even NOPs in function entry/exit tend to get noticed). --eVo2yRFuK2CxHWEO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTJIEYACgkQJNaLcl1U h9BQawf/f0SGHhLVQUgdnRJbAN6lBuDUQfirqOPQbGb1BDJkA5bBH3gggqgDiUP9 iuDR87qdT9VDbUW0rgSKaYDAizuTvWthjfPv3Y0JOAgM9fmGmDmyldhVOSrmbRQF hW3jgZbWRG0UK44PpWKLX2z13fGx9xVitteScPpIhF9r2o8kmq3SoYO7a681hQLI usvrKaEpMYgeGeSm+2qlQj5sQnVNNrRD3u1BLbOuu6uRfWWtoUS+cFxUUUMNcmbi 1ZrrHuAy4ZanoowjW4HLjzhtQDVSPleqsZGfnChKMuZhXPqpBl74qWAMs8x9bq/F iC0yz6XbrIQqfBkmNljqf0Kj03fpLw== =2KV+ -----END PGP SIGNATURE----- --eVo2yRFuK2CxHWEO--