Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp455978ybh; Sun, 12 Jul 2020 11:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygKVKgnhHjQt+2I/PPqFEFOt6NMKcpUXCEp5XEsybLp06r1semar7YZE5d1C+00/KtSOk7 X-Received: by 2002:a50:bc03:: with SMTP id j3mr89552531edh.234.1594579352315; Sun, 12 Jul 2020 11:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594579352; cv=none; d=google.com; s=arc-20160816; b=RvuV5+AdS3bpcgPzUG8Hmf9CclEwsiKEGf2gBxC2jYNspwmPZSEllMng3HHnmXY74O QlLJrcgRt5H8jXkxue0DslkGFCYxFTDpqosg4NV/9B7cboWdf1FOFTAa0ewG94AesQZs Cvb/fzw6r6oRPX6JUqtRTqGDxXXasz1iTP/TEYqEiqPKf2YREvu4gXx/5l31LV8nZCaH C4FPiBFHTaJ3H9jytbjfZtsn5wgCqpGUfQnDSg8CMNKIVI13S42vIpP++z9MRnFk5gFK 4FY0Pf3x7NYE9vTT7AmI5t+bvie/o5MW6Ri/67pS95e+OrAAfBH37FofCcBPvYxVpHJS GI/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5TJ+34sQAVUrawBXByyfuwrbgj6i1cli/YCTjxtCBqw=; b=QX7N0QibcblUNEsv7FZM0e69r9ujDsNUG6ShEE1wARmosytSVkZvoniYCrZzrGmYBr KVDsLmBxIxIXkuJ32GbpxBOESeqekQbep3g0DlqiPsrP90iKZt0IcHz/+pNSQthNFtXb ozZ3UH8YrJs5rAos9TiookmnBdrFuKw+wifmaxt9ntJWXz1H/lB8Fi/l+e4O1tQj2gfX 5+wVcuCDXrKWuztO9Gd4aqdndCTmEUBjYvqc0/i2wIYEuliJo7JEYKZOHtSr538MDJqG P3w7p8vu8Wo2jogoYmd3qEvV4v9/fjmwlf8sWRfw9dzqIKntBrtxRi1O0+/ZTO7+lugM 1Fcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N0HHcMjV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt8si11130892ejc.466.2020.07.12.11.42.09; Sun, 12 Jul 2020 11:42:32 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=N0HHcMjV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbgGLSkr (ORCPT + 99 others); Sun, 12 Jul 2020 14:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728945AbgGLSkq (ORCPT ); Sun, 12 Jul 2020 14:40:46 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 581C1C061794; Sun, 12 Jul 2020 11:40:46 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id t11so4964198pfq.11; Sun, 12 Jul 2020 11:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=5TJ+34sQAVUrawBXByyfuwrbgj6i1cli/YCTjxtCBqw=; b=N0HHcMjVGeZLZKs6kySBi/kLjx//vGsHRhAgAn70NbsmCWAMm2ggej1XEym1TkTrI2 1RaGmxT5o0gLydjCDJGV76FDHQsG0/MeBmIbxTv5DSaT3TULK/IfbYlfepfNEkiMQmk9 pMxE7Rt2/EFgEH7Quq7GvESDdpvWY+RbR8tRKc/SElrWfewWr1bDfzmOZAel5bastYU4 l+o96BGwta1qZ7PRMbDolq2P/ebYU/wwwO2jQcK/mwQ0tlDCRPQ2vZa/eEBWU7Y6nUZT K+Ku0Xl1nF8NMzl71Sss8yD4qs25ojddZtL3UAw9gfH97kt9dPHm6QwrFWkINM8fPBxh i8Rg== 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:content-transfer-encoding :in-reply-to; bh=5TJ+34sQAVUrawBXByyfuwrbgj6i1cli/YCTjxtCBqw=; b=kAL1AeVGyXcUTUofp0qT+d9ROc/R+wNt8dkopupUEhPCuq/jc1Gt03KugsDzsJWjHE kTbvdlXOS1ARfYblQhGYzP2k4WKWO0LXMsc+wHHI9i12AfcqztZwwFR4Mn0qL20CJSKd 5ko93DICDZ746tqkIMbQGw8Ux7fWnb65OK6njOnbUfhliP0sRSMF4zcZYnX/tzi4gbUH rQWDCxSNJeEFTm75E+husyEjPvCYJehGLRPNrArLY8ngcYyGZuImcQGF9s9ZPPhf1Q1H MthfEG4ZccIJvIibF+kJLndGP1qckdL8/swH10GRpYvfq0EvmjBu14MJ9PZroF+9bZWL XS6A== X-Gm-Message-State: AOAM530cuBKZLMCPFlIHhYhM0C3cEo2tnJU+eT67XP7WKbV1JixTbzIl 54JQLAiWqfkDuySCN7QZqbE= X-Received: by 2002:a62:29c6:: with SMTP id p189mr52732155pfp.55.1594579245655; Sun, 12 Jul 2020 11:40:45 -0700 (PDT) Received: from Ryzen-9-3900X.localdomain (ip98-167-246-98.ph.ph.cox.net. [98.167.246.98]) by smtp.gmail.com with ESMTPSA id ci23sm11966956pjb.29.2020.07.12.11.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 11:40:45 -0700 (PDT) Date: Sun, 12 Jul 2020 11:40:41 -0700 From: Nathan Chancellor To: Sedat Dilek Cc: Paul Menzel , Sami Tolvanen , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , Clang-Built-Linux ML , 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, x86@kernel.org Subject: Re: [PATCH 00/22] add support for Clang LTO Message-ID: <20200712184041.GA1838@Ryzen-9-3900X.localdomain> References: <20200624203200.78870-1-samitolvanen@google.com> <671d8923-ed43-4600-2628-33ae7cb82ccb@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 10:59:17AM +0200, Sedat Dilek wrote: > On Sat, Jul 11, 2020 at 6:32 PM Paul Menzel wrote: > > > > Dear Sami, > > > > > > Am 24.06.20 um 22:31 schrieb Sami Tolvanen: > > > This patch series adds support for building x86_64 and arm64 kernels > > > 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's > > > Pixel devices have shipped with LTO+CFI kernels 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 first objtool patch in the series is already in linux-next, > > > but as it's needed with LTO, I'm including it also here to make testing > > > easier. > > > > […] > > > > Thank you very much for sending these changes. > > > > Do you have a branch, where your current work can be pulled from? Your > > branch on GitHub [1] seems 15 months old. > > > > Agreed it's easier to git-pull. > I have seen [1] - not sure if this is the latest version. > Alternatively, you can check patchwork LKML by searching for $submitter. > ( You can open patch 01/22 and download the whole patch-series by > following the link "series", see [3]. ) > > - Sedat - > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=lto > [2] https://lore.kernel.org/patchwork/project/lkml/list/?series=&submitter=19676 > [3] https://lore.kernel.org/patchwork/series/450026/mbox/ > Sami tagged this series on his GitHub: https://github.com/samitolvanen/linux/releases/tag/lto-v1 git pull https://github.com/samitolvanen/linux lto-v1 Otherwise, he is updating the clang-cfi branch that includes both the LTO and CFI patchsets. You can pull that and just turn on CONFIG_LTO_CLANG. Lastly, for the future, I would recommend grabbing b4 to easily apply patches (specifically full series) from lore.kernel.org. https://git.kernel.org/pub/scm/utils/b4/b4.git/ https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/README.rst You could grab this series and apply it easily by either downloading the mbox file and following the instructions it gives for applying the mbox file: $ b4 am 20200624203200.78870-1-samitolvanen@google.com or I prefer piping so that I don't have to clean up later: $ b4 am -o - 20200624203200.78870-1-samitolvanen@google.com | git am Cheers, Nathan