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=-14.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 184CEC4363A for ; Mon, 12 Oct 2020 20:48:48 +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 9F0B82078E for ; Mon, 12 Oct 2020 20:48:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u+e3CL5+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="iBvAVUob" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F0B82078E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.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=GSoZXFzq+5u5169edXSpoGw1IW0X3hJkRqVj4HRQQBQ=; b=u+e3CL5+pmAumoWY5lIPXVkmZ zgn3u7aH4jGkTqGG9dFgJpDPKS8CxBqskpJ1vdP2RMFi/VbsjpRqkbFooDMMpAu4go84URcPvMvmB 37tnDDXjnbDue+DFXiS9+qjeRijWmRx2ELOgnZHDnNqaFKPZyMHTWSRb8SPp4BqMRIDRD4ihvCavd DqdpHBAb8QV7dVtIpr/1kE5pjyCnqO0jAoRgcNSS/oc8df4sdSTDE3vSYv0ZPW0Nm20YIM4wM7G4r VG+2Iucpe/mRD2c+4fgI+y7duCRsNstrpnrmB3tEjTTon+0zrRsQCiVznZUmf2CIcEqxR31Qtrwtw aXvLf6lHQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS4iW-0003OQ-AY; Mon, 12 Oct 2020 20:46:48 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS4gp-0002aw-EQ for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2020 20:45:07 +0000 Received: by mail-pl1-x644.google.com with SMTP id b19so9332623pld.0 for ; Mon, 12 Oct 2020 13:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/je9IGonHzFsuF/SNifo0ZcXgtv4yeAu6zOR0qhli4g=; b=iBvAVUobGLxYChgzQDFIjdgKitAhC2jHTTevcSYvj7umuQsfw68FrsiS588nddPL9n rvr2pXp07ZQWqM/LOhZO8EaapVG+BSzu0jORrfEH3ohPyD3qyDxXqnlKu5B0F1SooZd2 mIgofFGRcvthuFUyb4XxZSLu96zkfV5bLY9hc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/je9IGonHzFsuF/SNifo0ZcXgtv4yeAu6zOR0qhli4g=; b=FxVGV63niIiFnebL7shADIhoygLmXlIMDaiohBo/IpFh0sc9PYb7xGWrr6utCoGSHA Mdd//xnC0p3FVaM1HGQlAJUMq6jvIifQOacCmE8bcYCTCUFaTENY1ZiqlAGsxFmdlqmH 66gAShTrKB2BIpkSRO7HjoQWYC4f44DNBX253KBwPv9JHu6t5hV4TJEMsckRC2QImkiO 6UDLl9wv1nX1sgnVjaHN5NMw/wy7JxDgrQX6MvuhEyCaYo1JcmFAhjeMg6CT/bsGZIjx dmD4SnSNKsDDnzcWCAD2iDHeqZywhNDEh4WDojh2Sznt4cycCapZS1LaOnd+F5G5Vdcz pUrA== X-Gm-Message-State: AOAM532ZSu48wNqDqtb4Ui5YmBun9wTBCH1XxGSHUWXQ0ziMigUkgUwh oSQjmzHtpNvptaTgiINf42MpzA== X-Google-Smtp-Source: ABdhPJxf12qi2TvIPdMo3b44hzG/IVxwKW/VadUKNptF9UK+YkxRipHLl4jP/u0pgN9HY2DkPgijnw== X-Received: by 2002:a17:902:cd07:b029:d3:9be0:2679 with SMTP id g7-20020a170902cd07b02900d39be02679mr25530237ply.68.1602535499967; Mon, 12 Oct 2020 13:44:59 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v20sm16032300pjh.5.2020.10.12.13.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 13:44:58 -0700 (PDT) Date: Mon, 12 Oct 2020 13:44:56 -0700 From: Kees Cook To: Will Deacon Subject: Re: [PATCH v5 25/29] arm64: allow LTO_CLANG and THINLTO to be selected Message-ID: <202010121344.53780D8CD2@keescook> References: <20201009161338.657380-1-samitolvanen@google.com> <20201009161338.657380-26-samitolvanen@google.com> <20201012083116.GA785@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201012083116.GA785@willie-the-truck> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201012_164503_596114_8A20891B X-CRM114-Status: GOOD ( 21.34 ) 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 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. > [1] https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=rwonce/read-barrier-depends -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel