Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4921020pxk; Wed, 30 Sep 2020 15:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2w6NkRzH2wPIFemQATg7xRQh3cPjl6z5oVn0cSjNNH4MZ2wvTpvSUJVPmoUlY8Bzb6GBK X-Received: by 2002:a17:906:1081:: with SMTP id u1mr4941273eju.284.1601505649726; Wed, 30 Sep 2020 15:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601505649; cv=none; d=google.com; s=arc-20160816; b=dNrY9ZbJlT32tShAnLA3USsFOteJ11yKWz9JY+nueiEAPSNzLEnRbkaWSh3UzTZBFE z5xHAaausE0z2yU/2tXH+5SMoYskurONSFUuQVtyN06ZgZ2ztpeth4vyrS/5WpqZYDjr aQOvPa7Lwi9HYUH2AGOFOKmWiWdjJOyoZQyjggDos/YUb8uulSbj6MAYEN1++iQzkKVY I50d0svEkoUHPInN5MJTJHr0PrpnLL3KYMVBywdwcrwrzBJ5uWZ8FUwYLGXapLVmjc5U /JQS20f4U7pDOARjFBbr73TiFP7D/yXGBlElY1v+bmZf/cWP4zWx6zOpiIykgWoohKx6 hkIg== 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=43NmDXRdfvytQQYY6+SkI5I3v0G1ZKlfq1R/B+8Rbe8=; b=h2UcRNeMdHCKqjP2l0op/SY1XX3WFCMS/8J3NdvBLaIIkJZmJqcv7LuEz10vlBrBFV zeupZP6YBT1u68dLWBWiu/yfGI6QxY3dg5LqhlE8O7zQaMM1KTskuhFVrkVxayiXEFST 7nbSyrM5UVOHTbLF4gBa3FbjrfYuk16DWYgR0nJqQ9QWXGnOadX9A3Hul9d4Qe7mSx2I kgoWWt4Q+VGAYgu6KgBc19yVtMN7t3wQS7NbxMqK26voIJ+pEOU8TdxEAQZUJwtfjEui A4HGwfLXedVa7kOPhFWR5COCFGO6xzpK2vDmuSP/rBT1h985LUpHceR2UE0g3XYeVDqg qayg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aznXL+Mf; 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 pg3si2317524ejb.94.2020.09.30.15.40.27; Wed, 30 Sep 2020 15:40:49 -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=@chromium.org header.s=google header.b=aznXL+Mf; 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 S1725892AbgI3VKg (ORCPT + 99 others); Wed, 30 Sep 2020 17:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbgI3VKg (ORCPT ); Wed, 30 Sep 2020 17:10:36 -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 69EDBC0613D2 for ; Wed, 30 Sep 2020 14:10:36 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id q123so2180669pfb.0 for ; Wed, 30 Sep 2020 14:10:36 -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=43NmDXRdfvytQQYY6+SkI5I3v0G1ZKlfq1R/B+8Rbe8=; b=aznXL+Mf1oo937XoxBdAUWYbrGQBox+mHPLXOBi8fxELvJxmtN4Oh2fdCubtsfNRrA rDHSxjRXgFROvxwZKbrgkOQaw+IdYULTR8nRNYUFnd02K6q1DKbVRP6qGTIrAq/ntqIt uicIip4Sy8y/dZqila87XWTqZiy3eaEQT/WgQ= 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=43NmDXRdfvytQQYY6+SkI5I3v0G1ZKlfq1R/B+8Rbe8=; b=l9gceFbxgEYgBuxg0fgHG0JZBJCu2AIEx9YVYGgTLnoprOrmVhtsVGJaBfpcBaQPRr USu4w5ZSmcELcHyP5Hj2AyFj8I8i/xv1UjkoC+i7GBoVQmMQ4PqUScXND6utPyBjx3dO MZcrHJnMGijESAAPH5F4Tnp8W75MF+8yr191UFEcfUQpCkbuBfK5Oy59sWEKIrS9rGg/ ZeR58uiKE5vWUu8rtsFyCQvDjQ9f0f599p+bc3onxlukCaXIKfySVnIJl8tISFLCJvMV IS/SWWdls6gkilfVrFRClyvXvKHqtK/63s/VZpWnlOxVrPVxG7ERFGfs5OjExw4OgM2R LrVA== X-Gm-Message-State: AOAM530ddSgy/ITYyux9iyoREtgLQsWD1Nm47KFV5iOLP3Rg8KUWgfyv X+wBFLjIVtHTkzI+m8fi86Kyrw== X-Received: by 2002:a17:902:c40d:b029:d2:562d:db9 with SMTP id k13-20020a170902c40db02900d2562d0db9mr4239380plk.46.1601500235715; Wed, 30 Sep 2020 14:10:35 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id n2sm3182853pja.41.2020.09.30.14.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 14:10:34 -0700 (PDT) Date: Wed, 30 Sep 2020 14:10:33 -0700 From: Kees Cook To: Peter Zijlstra , Steven Rostedt Cc: Sami Tolvanen , Masahiro Yamada , Will Deacon , 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, x86@kernel.org Subject: Re: [PATCH v4 00/29] Add support for Clang LTO Message-ID: <202009301402.27A40DD1@keescook> References: <20200929214631.3516445-1-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929214631.3516445-1-samitolvanen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 02:46:02PM -0700, Sami Tolvanen wrote: > Furthermore, patches 4-8 include Peter's patch for generating > __mcount_loc with objtool, and build system changes to enable it on > x86. With these patches, we no longer need to annotate functions > that have non-call references to __fentry__ with LTO, which makes > supporting dynamic ftrace much simpler. Peter, can you take patches 4-8 into -tip? I think it'd make sense to keep them together. Steven, it sounds like you're okay with the changes (i.e. Sami showed the one concern you had was already handled)? Getting these into v5.10 would be really really nice. I'd really like to get the tree-spanning prerequisites nailed down for this series. It's been difficult to coordinate given the multiple maintainers. :) Specifically these patches: Peter Zijlstra (1): objtool: Add a pass for generating __mcount_loc Sami Tolvanen (4): objtool: Don't autodetect vmlinux.o tracing: move function tracer options to Kconfig tracing: add support for objtool mcount x86, build: use objtool mcount https://lore.kernel.org/lkml/20200929214631.3516445-5-samitolvanen@google.com/ https://lore.kernel.org/lkml/20200929214631.3516445-6-samitolvanen@google.com/ https://lore.kernel.org/lkml/20200929214631.3516445-7-samitolvanen@google.com/ https://lore.kernel.org/lkml/20200929214631.3516445-8-samitolvanen@google.com/ https://lore.kernel.org/lkml/20200929214631.3516445-9-samitolvanen@google.com/ Thanks! -- Kees Cook