Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp57523ybb; Tue, 31 Mar 2020 17:06:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvWs5pG7qDLtcp28If5VpOwbBpYp3V322H47M/eKGI0Dnta4Iddvn/X49OR+F6J+T0lOpFG X-Received: by 2002:a9d:3a1:: with SMTP id f30mr14508253otf.215.1585699567115; Tue, 31 Mar 2020 17:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585699567; cv=none; d=google.com; s=arc-20160816; b=mtW9tJMjfpf7qqWprjE5l6Webw/RbYgkqrTfWNGUY4joUEZH1idC/+m32Bltf2tflH wmkyoyqjlw7PyE1Xw5OV3Pqy0STO0KoJtReUczDeUMd/iATyvjDY69xP2An6T7qdgx0M ph+A4ipO79wj8qdjuRoL6RYjBt5WJuYRrCBn+rPxO9pweZrI6mnL6JaN/xvJ8/hcZrLv LqamPKXnyBoWRKU5Rp9qgChZWs44DvqnYgEpd4Rvm30eBUjXzkUkGOBLvgA/pe7VgMC8 M6t5/KIaKsigNDEdMMNps1Jc5QFJuad1j+DgGaQcXs2r6f/6/yrBc27fgyl57ZZ1a65B zfgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RmTvz/L6YmOrh3p07+F8l4GXjEVQNak2kA1fSgQ4Mjo=; b=vGgrMSBpWWxQ8Z6GBt4z5LVcEXQNGETEKYvgH7uF/ClNOJE6d0/mhcXhhGSCWhIe5/ MW3UTpTmmrWVvyEBpuWyExY31y6bG9RsOJoypuVD/gXyaatzOdRT/IZhRv085uefsZs6 EwnaYFOoI6z32t/Dj4KGrzUIsV7c3CZE9cXMHcUy1ew9xFf1z7B3YQse+0nx9ZdO10Fb EPnc3wfZI4krDBvXRoRiQQNYFscFRVxVvV/GTWs0uSiWbG6ujEBWVa+867G+QzYp6NRz vnpZUdXfLwTfkR5146ynkt8BBAgIafctSLBVSjPT3zyEgX6SheC8U3vj2oqzmPHU0D7p AqrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIxiKBCs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q196si194897oic.143.2020.03.31.17.05.48; Tue, 31 Mar 2020 17:06:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIxiKBCs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731588AbgDAADW (ORCPT + 99 others); Tue, 31 Mar 2020 20:03:22 -0400 Received: from mail-qv1-f66.google.com ([209.85.219.66]:37002 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728840AbgDAADV (ORCPT ); Tue, 31 Mar 2020 20:03:21 -0400 Received: by mail-qv1-f66.google.com with SMTP id n1so11936604qvz.4; Tue, 31 Mar 2020 17:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RmTvz/L6YmOrh3p07+F8l4GXjEVQNak2kA1fSgQ4Mjo=; b=aIxiKBCsylb6yX3xKI+LsQsqD0w6HyUuOtycBCSZkXBMPqOnHc2TtCNpmmKNjSX4jz E6TkCysPrh15L662DEQtnYOMpbMzgrTHXK5wlH1ZxSK49B0DvmybzIoSoUVjJ54XGjVF Hrc0IC9VXLt5tbsUM8us6woO1kz1OpIhbRAbP2KvBxV6+vX0k2ozWBnhNbWvXR7/LKi5 +Y657UvUeShXYWfIsXFmeCc+OvGOrcRJrxnUCjrCRGiwdY6qwkrtOoIq+8UEDgFkGeli xtrnkBU+0ImdgeOiXjy+I3Utt/iM9GAvVf/qRtf7hFA66IKrs8PioREy9drD+gIIklg8 KU6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RmTvz/L6YmOrh3p07+F8l4GXjEVQNak2kA1fSgQ4Mjo=; b=mwGJJuk+SrSZupi3cNjWvRmI1zo7U8b1qRu2JiY7qSmY5mRIvHlM94NEDHrtQNxIHs e+9+b7Wsy2j135PfvaSDKJa6tzGt3Mwq+katmiJYjBh5Y2DMKB1hezRLK2FrgVQCsoYL yWvuGZtUfJxOov2++AB0Bfe0iBsKSklUiqXchMUmL8a7cuQmPrfnap8aFO3C2btnhxA4 /Icwjq2IaFCjfdi0cuMJ+a2LmN1RlgEkza6JVt9+SO80q/SCqjTRGXQzx9aU+RQwfqUK Ea4XV/JFlNHnHLhsPrPHENnzHE/D01BolBpBxlcTlBcqhHeO4tuCMBcBFSgo+SAwLRav 7TQQ== X-Gm-Message-State: ANhLgQ2lQ627OkPXg9YXxxoxXZU9VNrXHUM1v2dV6f0u4u2HrDmT35rP J6ZrK3dKfzPQs1ZzOAE7CF2Bdg581XT9yVdGHqw= X-Received: by 2002:a0c:bc15:: with SMTP id j21mr18213275qvg.228.1585699398382; Tue, 31 Mar 2020 17:03:18 -0700 (PDT) MIME-Version: 1.0 References: <20200331215536.34162-1-slava@bacher09.org> In-Reply-To: <20200331215536.34162-1-slava@bacher09.org> From: Andrii Nakryiko Date: Tue, 31 Mar 2020 17:03:07 -0700 Message-ID: Subject: Re: [PATCH v2 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF To: Slava Bacherikov Cc: Andrii Nakryiko , Kees Cook , bpf , open list , Jann Horn , Alexei Starovoitov , Daniel Borkmann , kernel-hardening@lists.openwall.com, Liu Yiding Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 2:57 PM Slava Bacherikov wrote: > > Currently turning on DEBUG_INFO_SPLIT when DEBUG_INFO_BTF is also > enabled will produce invalid btf file, since gen_btf function in > link-vmlinux.sh script doesn't handle *.dwo files. > > Enabling DEBUG_INFO_REDUCED will also produce invalid btf file, and > using GCC_PLUGIN_RANDSTRUCT with BTF makes no sense. > > Signed-off-by: Slava Bacherikov > Reported-by: Jann Horn > Reported-by: Liu Yiding > Fixes: e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux") > --- LGTM, but let's wait on Kees about COMPILE_TEST dependency... Acked-by: Andrii Nakryiko > lib/Kconfig.debug | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index f61d834e02fe..9ae288e2a6c0 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -223,6 +223,7 @@ config DEBUG_INFO_DWARF4 > config DEBUG_INFO_BTF > bool "Generate BTF typeinfo" > depends on DEBUG_INFO > + depends on !DEBUG_INFO_SPLIT && !DEBUG_INFO_REDUCED && !GCC_PLUGIN_RANDSTRUCT > help > Generate deduplicated BTF type information from DWARF debug info. > Turning this on expects presence of pahole tool, which will convert > -- > 2.24.1 >