Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3471791pxu; Mon, 30 Nov 2020 04:04:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVVsDMkiwHwHHRX+I6yD9+AlrJK3+s/L//nmA1dvNBKX+ziTZzCtF+HUfx+L5sjzdP9uA6 X-Received: by 2002:a17:906:7016:: with SMTP id n22mr19950905ejj.402.1606737893148; Mon, 30 Nov 2020 04:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606737893; cv=none; d=google.com; s=arc-20160816; b=Y2Xy4xgRgeZGidkcH0oKKpDT4OcOsbFldFNmyW/oFCVehEOwHEk2lVXU9/5/Q2nsHp 3nV37w6hmK6h+sbaNwt2FMiE5uuvDEKydhVZYB1A7t9IPai+JqtCcwdJfAZ1ICOpI4E1 HclAq/2R3BvUpHOzDj5/XSas74GHbNdDmd2AB4B+Ft2KDqQXrA47XtXyN3zHkqDCfJJG zuP7NzZKLl+pHOmxYjtwfL0L588QMIAg4YCrDUDBx8B5Agc74Bz7//4VAfZM6g+7e53U OYqjvgpljAww2thUbMM4mnhUMoalTjlhikllEXxEly6PkGJco3EH6wl0Qg/373ZqE241 PVTg== 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=beLW5YW3G6qoca8EvrxytRODp0eTFEQuBs6jxkyykns=; b=T1RzZ16+z3c4B0jHY7Ej0Skybw9+2LixHz0bKUZJUAjz0E5ghe206XC9xbE4Es8CJ1 vAZgBC02SQU1BUqaWMkDBBN6x5grMqh52cP2Cf5ovD5G1SbGISHWR876e8y5/3GsZF9S Ge7mpwReVD5DHiaX6gTOtdB4MNw7Ml8bHvFyA1sZWW2iWLQ8umpZ5eWzVMl4xO0O2rVY XXtv+anZXxhKs6H9ZsBUvUA1bjJYxWWNkyKLqaLq7yfkEZJ6EL9gLAkP5hwVR28cztbG hJ4A7CfIotPNh5alDQj8KI8JEborOP8oRJjU7L5yvqstP4NF3TbkL8Yewf4NHdELtHEc 7w7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EwVQLNws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me16si779848ejb.257.2020.11.30.04.04.29; Mon, 30 Nov 2020 04:04:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EwVQLNws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729206AbgK3MCS (ORCPT + 99 others); Mon, 30 Nov 2020 07:02:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:35772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbgK3MCS (ORCPT ); Mon, 30 Nov 2020 07:02:18 -0500 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 89B91206CB; Mon, 30 Nov 2020 12:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606737697; bh=A/tQpaRCdVBxIrK5CVrihAXJGL1D0YMcA4iympcoTzk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EwVQLNwsXH/bdnWP/eU1At5WBpjCSdAR6JTRNITU+0kyAYmyC7vfvCGB5aglCFG6x MgF+azWjp5V9E9RCzfCIxmq6AyuSMIhVSOBmKKJ8jGetiIbmZ9+phj0IYAntF8L2n+ Jz+cOfBAzUsJpOu6/EZ4Jj48GG8LJpvvDpy7mI9s= Date: Mon, 30 Nov 2020 12:01:31 +0000 From: Will Deacon To: Sami Tolvanen Cc: Masahiro Yamada , Steven Rostedt , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v7 00/17] Add support for Clang LTO Message-ID: <20201130120130.GF24563@willie-the-truck> References: <20201118220731.925424-1-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118220731.925424-1-samitolvanen@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sami, On Wed, Nov 18, 2020 at 02:07:14PM -0800, Sami Tolvanen wrote: > This patch series adds support for building the kernel with Clang's > Link Time Optimization (LTO). In addition to performance, the primary > motivation for LTO is to allow Clang's Control-Flow Integrity (CFI) to > be used in the kernel. Google has shipped millions of Pixel devices > running three major kernel versions with LTO+CFI since 2018. > > Most of the patches are build system changes for handling LLVM bitcode, > which Clang produces with LTO instead of ELF object files, postponing > ELF processing until a later stage, and ensuring initcall ordering. > > Note that v7 brings back arm64 support as Will has now staged the > prerequisite memory ordering patches [1], and drops x86_64 while we work > on fixing the remaining objtool warnings [2]. Sounds like you're going to post a v8, but that's the plan for merging that? The arm64 parts look pretty good to me now. Will