Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp978954pxb; Thu, 19 Nov 2020 20:06:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfZPv+tqDxE95vqZRKQsk0KpyBgBw4/x9fI17EpL0+cXpY4iO58nFbEt+/VrqWdoIgGHLQ X-Received: by 2002:a50:d315:: with SMTP id g21mr34291995edh.84.1605845194583; Thu, 19 Nov 2020 20:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605845194; cv=none; d=google.com; s=arc-20160816; b=OLyvcGYmykp4ev+a02NiWqzBZaGD0m0N8oHGTwpbAAh5Ws4RvS0QmN4+Be4uBN2/D2 ZL/bhkb7m1ADMs5OAIlNzvN+zkbeOSy72LfWlpbRdjck6i4ck2uoyOljT3gbFAmA/YmK sunH9NMjj5CWCvhV0uD8ReV3kNUDG81UcBv+2FGLOb65eOHw/Tf2F24mF76sOgHei5hS ztrnhDY/0msKYC124Qnl4DsLGMmLsYe3A+I7FEnqJopDffEFEz2pETSRLR5ttHjUpOqA FIyrth4VlD1iu4qOG5UlAgQrJZ/+TvYgTheI3Mc6FGinKrRGvye8DozLe/ISHCj/KjcQ oCuA== 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=o2KUuc5wwsBwxaFKsqE+AT6g8ZgQDPHa1BC4D1RcHko=; b=pxu0XUA2Q5VDSFQQ5OkVJ63QZZUrNbo+aaG5hJSyo6Ip8VKNecTMkyYQBDaGvXSWEp +T7rWpu6rGNENvsWL8ZDdVe8eMPdFlIfA/N+FEAPPbdAdEBlcwDwgZ9dZsDYvJgbr+WI n7u0nmyBqGhN0KWvBvEexXpgcx0A4V4kMfiNktB8PZWc4KOMzci9ZNQ2Wcwbiotey3dE d2Yj7Fl+F/pBK+bdIt6e9m9rw3nD6ZhFAHPHHlyqDxmIuWYf+/ZgwRRvfTk5XMg5xSvu TV370Jd/C+sndhTen5eK6WQCIJeuWXiLOI5TLoT0CknTynZm4i3tC32Yf++sfBxLvnOY 3LOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QAJ7dC+j; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si1023077ejc.65.2020.11.19.20.06.09; Thu, 19 Nov 2020 20:06:34 -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=@redhat.com header.s=mimecast20190719 header.b=QAJ7dC+j; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726172AbgKTEEi (ORCPT + 99 others); Thu, 19 Nov 2020 23:04:38 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:58925 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbgKTEEi (ORCPT ); Thu, 19 Nov 2020 23:04:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605845077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o2KUuc5wwsBwxaFKsqE+AT6g8ZgQDPHa1BC4D1RcHko=; b=QAJ7dC+jIYsdyzBghu3FHiqv+OL8V9WfweQXvabDm0BuyD2fUVodeXv9ZSzivR3XgbNV/9 zHJUJxTdFwFOenytSIrWixG0LeCLX+vakVbyd9H9RKRHaz7jpzN0vIdQ84bnrJGoWlABzE 7UQhpSn87Kq+F1ruZxfdoTXRYHzCfsc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-230-yDf3VGw1POqCQOhtPJpkwQ-1; Thu, 19 Nov 2020 23:04:33 -0500 X-MC-Unique: yDf3VGw1POqCQOhtPJpkwQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 126894236B; Fri, 20 Nov 2020 04:04:31 +0000 (UTC) Received: from treble (ovpn-119-150.rdu2.redhat.com [10.10.119.150]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 90D3019C47; Fri, 20 Nov 2020 04:04:27 +0000 (UTC) Date: Thu, 19 Nov 2020 22:04:24 -0600 From: Josh Poimboeuf To: Sami Tolvanen Cc: Masahiro Yamada , Steven Rostedt , Will Deacon , 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: <20201120040424.a3wctajzft4ufoiw@treble> References: <20201118220731.925424-1-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201118220731.925424-1-samitolvanen@google.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. Sami, Here are some patches to fix the objtool issues (other than crypto which I'll work on next). https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-vmlinux -- Josh