Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp412771pxu; Tue, 1 Dec 2020 14:39:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIf8eCi017rbvNIe0DdWA6fcbXA8a3wgBCV/bYGsBje7kgM4xvXPUnXS1omzUfePK5FttD X-Received: by 2002:a17:906:a114:: with SMTP id t20mr4668275ejy.257.1606862388233; Tue, 01 Dec 2020 14:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862388; cv=none; d=google.com; s=arc-20160816; b=0aflv0ESS/ex1yo/XcLwZhqPXFEPJewbPIeqiP3Bd7wbDmcFnNWMcq/5h5eVVHokGu wgAEv9+GrJ77G5Ot2iYBQlSROFqNqSwr1jhKbtZCIHptFuAHEzhR84NosV6Xjq2sPSNN ZNzNLmkKzTozokiRZWmHrzcTYfu82zgFdf6Vf6/ZkMM2YhJc1UXRHOaPURi1CgnrDur3 bTCBt2C2ovpnkjDf2plalghNNGzVkHNoq9GejVxJXKn6TzPOSz5xT6X03cv5kiYvCQMV XoRCylAYZ/JqMU0MZZE+F+JO0LdRSFFnbFn7I4R0j+XLrV5KiuvkM36SvVZ4ykUCAZy3 tKlw== 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=fIhrXegmFXx4Y1S8YgnbVoZcP9r/eMN50vMQw7Htjj0=; b=z7GjvuzJznuVLE88AH6Dk5mXnQRWn4PGd/8IjW6kUxWbKeD9+EynPFlUESIZXn7Waf 72UuBEHerx7gLqpS2CnU8CXKXmJD1v37QkEqlHrnoQFV1Aoe07VdT1JtiNvQilWeKrIR FYE/NIVbZaW4Fi+C8AHLu2o+VagL6TowZUYJ1qzJAO/YQ6w93FuwT2nCc+iQRi61aqED lShopbtYjtmkJtX5TKXgZuvaTeXqkNe3V9WK9lUCDWdgi17HKKWvJ0YpXPPeYD+wltei L1CYuazrOUkqAFZ+7PV9oCzm0Efm1OwCJMEmA17nVZODcZ/Jt7R6T3ZRqgbuPUzz4lV3 +q3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=COBsdbub; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si953629ejb.377.2020.12.01.14.39.25; Tue, 01 Dec 2020 14:39:48 -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=@chromium.org header.s=google header.b=COBsdbub; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391013AbgLARbt (ORCPT + 99 others); Tue, 1 Dec 2020 12:31:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387840AbgLARbt (ORCPT ); Tue, 1 Dec 2020 12:31:49 -0500 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88977C0613D6 for ; Tue, 1 Dec 2020 09:31:03 -0800 (PST) Received: by mail-pj1-x1042.google.com with SMTP id iq13so1640513pjb.3 for ; Tue, 01 Dec 2020 09:31:03 -0800 (PST) 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=fIhrXegmFXx4Y1S8YgnbVoZcP9r/eMN50vMQw7Htjj0=; b=COBsdbubf4U1NB4bryhE6zpFJFlxC6tnZcSZU41etUauCccqXZsiquU+7Pg3YtVZk6 FaJj4o1AIWN+/OM9H6u8TAIFxZgoJVNQ/2jTBB5a/m2hHYR3qjgThVUzKnMTBTgmN/d+ qjZ/Lpe9hl7c2js/gywR+ayaeczGzpkDoU8ik= 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=fIhrXegmFXx4Y1S8YgnbVoZcP9r/eMN50vMQw7Htjj0=; b=s2G3FgFfBsBsKgBZWWFqxkXbK44b0iSpb7QhzgzjkIm9zP0QBt/gQONa96OWZqLpz6 pePsVFVCSu+jtCE4VhqGmYA4t6rfMCQKbXknPocf3B/O1LnLGpcIwEF2MVZ7yodf/WmB G6RuIC8M+G+QGCNSJmmEK5WqKh/4ZTb6Rg9KBg+lyyQW2JcAu87gLh/EvbmstaH1x7Pu ISj67PbBV0HZRs88pty3fgED3yHvXPm5q7jFrE0Bx7PiUfHHtmrFs1YLHOL0t1O8y3n1 5Xlq5tveshXXJI8i+siEy27puWIHuexLDYFFLloU/QG9WMylr9W7RpQaKSZPNvxPagNo UaRg== X-Gm-Message-State: AOAM533xjSzZAO9ULoro0QGP/PjBxM+Z6LNQwPSYgV0bt3bjKHQtU60h RfKia9bSXqNwQGPlk/XjOlLe0Q== X-Received: by 2002:a17:90b:224a:: with SMTP id hk10mr3671202pjb.81.1606843863156; Tue, 01 Dec 2020 09:31:03 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j143sm400818pfd.20.2020.12.01.09.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 09:31:01 -0800 (PST) Date: Tue, 1 Dec 2020 09:31:00 -0800 From: Kees Cook To: Will Deacon Cc: Sami Tolvanen , Masahiro Yamada , Steven Rostedt , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , 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: <202012010929.3788AF5@keescook> References: <20201118220731.925424-1-samitolvanen@google.com> <20201130120130.GF24563@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201130120130.GF24563@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 12:01:31PM +0000, Will Deacon wrote: > 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. I haven't seen Masahiro comment on this in a while, so given the review history and its use (for years now) in Android, I will carry v8 (assuming all is fine with it) it in -next unless there are objections. -- Kees Cook