From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67CA0C433DF for ; Mon, 12 Oct 2020 21:07:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6081206DC for ; Mon, 12 Oct 2020 21:07:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZP74uc5n"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="aUA4p24m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6081206DC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u1oFrTEoQq5q5gndFfAR7hnT2foIhSSYSex6Z1nh5X4=; b=ZP74uc5nhUIvyoOVGlrY1HSeY lTAQUTXA9i/MMkfBigmcp7OHyYKkv1/Zn4SARrZotU8smr0+RdOiM7kC3bffrjSzN8NmK36kPovUi tlYsYH3AqmzEMdMhBEfRIhjPE97XEQJFfdyvwU5rMCFT0nqsPcRrh7VDhp14YrsWCD+NMlQuZZecS 7FWKlDdA0qAYn/65y+lCckPD35ax5gRbJfx8ou8xVW+7XyxZb8lmbuJVPCj6i+lduAog4lx8Q3VUA J9cAFrW+DQYwpPDSoWHkQPBYSscF8WCd8KVXd+hZQTOlUOCJrp70x9zVpQ1FOXocQBSreKJsGbGQk ScwHaN3TA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS50S-0003nl-JZ; Mon, 12 Oct 2020 21:05:20 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS4ms-0005lN-1b for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2020 20:51:21 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B24EB2078E; Mon, 12 Oct 2020 20:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602535875; bh=0GkuUU3uNC/spWLd0lGLXk3f0NEQnPHerA+y4i0HfIc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aUA4p24mfdDVp8gVMcJs3cg4QcRdzKI2RfnmgjjYH0yIvLOULOXyZL1YYb40RXCIL 0j4QZMJA0d4Jf96ySlvQCMNewtFUSD3KgMkUuWXetoBRKiLSWzbvYrWq0FC+1nMHyw 66F2X0FbdKKOd7lh9w7SiCHjg714ONHZLITlgfQo= Date: Mon, 12 Oct 2020 21:51:09 +0100 From: Will Deacon To: Kees Cook Subject: Re: [PATCH v5 25/29] arm64: allow LTO_CLANG and THINLTO to be selected Message-ID: <20201012205108.GA1620@willie-the-truck> References: <20201009161338.657380-1-samitolvanen@google.com> <20201009161338.657380-26-samitolvanen@google.com> <20201012083116.GA785@willie-the-truck> <202010121344.53780D8CD2@keescook> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202010121344.53780D8CD2@keescook> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201012_165118_371894_6DD755E5 X-CRM114-Status: GOOD ( 22.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, x86@kernel.org, "Paul E. McKenney" , kernel-hardening@lists.openwall.com, Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , linux-kbuild@vger.kernel.org, Nick Desaulniers , linux-kernel@vger.kernel.org, Steven Rostedt , clang-built-linux@googlegroups.com, Sami Tolvanen , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 12, 2020 at 01:44:56PM -0700, Kees Cook wrote: > On Mon, Oct 12, 2020 at 09:31:16AM +0100, Will Deacon wrote: > > On Fri, Oct 09, 2020 at 09:13:34AM -0700, Sami Tolvanen wrote: > > > Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. > > > > > > Signed-off-by: Sami Tolvanen > > > Reviewed-by: Kees Cook > > > --- > > > arch/arm64/Kconfig | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > > index ad522b021f35..7016d193864f 100644 > > > --- a/arch/arm64/Kconfig > > > +++ b/arch/arm64/Kconfig > > > @@ -72,6 +72,8 @@ config ARM64 > > > select ARCH_USE_SYM_ANNOTATIONS > > > select ARCH_SUPPORTS_MEMORY_FAILURE > > > select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK > > > + select ARCH_SUPPORTS_LTO_CLANG > > > + select ARCH_SUPPORTS_THINLTO > > > > Please don't enable this for arm64 until we have the dependency stuff sorted > > out. I posted patches [1] for this before, but I think they should be part > > of this series as they don't make sense on their own. > > Oh, hm. We've been trying to trim down this series, since it's already > quite large. Why can't [1] land first? It would make this easier to deal > with, IMO. I'm happy to handle [1] along with the LTO Kconfig change when the time comes, if that helps. I just don't want to merge dead code! Will > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=rwonce/read-barrier-depends _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel