Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5843811rwb; Tue, 1 Aug 2023 08:37:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQwIgsJcyAbggSWKa0vNL5ttWw3brnnfZPVVY9uSo7EWMGVAU1WasjXlOVXlSdXtlakZSL X-Received: by 2002:a05:6a20:1608:b0:11f:6dc:4f38 with SMTP id l8-20020a056a20160800b0011f06dc4f38mr14283395pzj.55.1690904260055; Tue, 01 Aug 2023 08:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690904260; cv=none; d=google.com; s=arc-20160816; b=Fe6jm9iKaZQ+6sXftzsZWMQjMCr4VNvcsQw2IILdBwV7g/vtvHIk0foM1OUyJBjfhr nxA1ANxw+pvw/YRyQFJGRmITXRrKxu/zpCL6J51yLMan7sm2qSiYMXAEduJE4v7tn1SV vAMA0j8k8sB6PYG63XYUi64aQ+S53PCRoI788BevyVF12NOUXgYeGHp2+TUL+lA3I2iM 81NObquiMuWIWq4THAO2VQKmxuoAPyy28SuzawoBXPoMH2ibauXTz0e95zQfczSmR9Kw B0X0yBfjd16F/zd1A7YP5qnaBkvsgYmCCJ0iL7cFlakhz+1+cMWE2qFWAzNyYE3sOTGL dc7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NTBwd29Dbu+ECP276LsKiM8HBDKaR00BKAB6CRCf3bE=; fh=JTxkF0E+04mLro7dpJt1eFlekchwqxgzIXVvFQ9EnQA=; b=b/MujkOxGMaxSpopOzXo4bXNKLxpv6m/i+PAYEWEu3Zkkfsyv6LsH8rK8nImbLbchC Ka47CW6QXmxeS/cijdiFE6XSSCYlYQeilET3LyQ6jtPZ9V0Q6EkWwze0K3eFlihOxgsu 1H5g/c+fNd7tK9Mzm0LYvdyE5hpq435hjQxiGUys9KN+8pH0pTKb2LW6s4xAn0/zs8ku 6gmq33pnSePKvUyjukFIpEVYcmzX/A/+Q3xGtBSBAstISwflEtuYc3TqWm91Xgr/tiii XfBQOwa15ZsxBWUDJLz5KZiQZIvNSsj+eVMEH9vP3OEZ6xaDH1s42wrd+JvRS1qJpPG4 Ndlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=abqS+G0u; 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 s38-20020a056a0017a600b0065b4e2b52c5si9460502pfg.196.2023.08.01.08.37.26; Tue, 01 Aug 2023 08:37:40 -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=abqS+G0u; 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 S234440AbjHAONm (ORCPT + 99 others); Tue, 1 Aug 2023 10:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234468AbjHAONe (ORCPT ); Tue, 1 Aug 2023 10:13:34 -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 2958C269F; Tue, 1 Aug 2023 07:13:30 -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 A4E9D615C9; Tue, 1 Aug 2023 14:13:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C215FC433C7; Tue, 1 Aug 2023 14:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690899209; bh=NTBwd29Dbu+ECP276LsKiM8HBDKaR00BKAB6CRCf3bE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=abqS+G0uERa7fIKrH4hSw9IDBy+zR3n2e2RncQqAqkzlG6NQHu8J5iIFlkwrB657I oJQ0+vDyHimf0Zzmz13ZMAyco3wCnDXoFSci37voDkjQr4SVseAsIyVJ06v3CG1ZKX wA4zk4L/vjGB4EVHMfxhGACjxWZzRWGs+AESTu3SAB7pEpFPTu5QyCSKsYrmv6ocyz STvBOLI5/v9lmw1IkmkGMiZootxRVm5BrSrS3Z8ppbrLm97hcIZG9bJiqDSG26raqx VegkDKaNPneU+4IvGTtTT2RITGdJC90YBsdQ0YM0USvoHqq9xrcZJCf7t4mwUrCzhT F9wsepVvvxiMA== Date: Tue, 1 Aug 2023 15:13:20 +0100 From: Will Deacon To: Mark Brown 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: <20230801141319.GC26253@willie-the-truck> References: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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. Will