Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3831246ybb; Tue, 31 Mar 2020 12:53:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsoOhM+49ZKBUXQ4l6mN9u71cOlQ+bt5MsV6w6Q9dpoowaSEZSDJV43NBGmq/x/oifRQv0R X-Received: by 2002:a9d:6a02:: with SMTP id g2mr9816285otn.196.1585684414762; Tue, 31 Mar 2020 12:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585684414; cv=none; d=google.com; s=arc-20160816; b=iG4brmcBOjiYNenfx3NBeLb9DwUzlcE1EtNY9GM/CyQLbdSKnLRGSMaMkQy91o6M+D mlvD8RojO7DfcPVMZYnGJcZXv6L5GK0D4LTdVE/y8Qg6OuQi1HOffjQZzM/BB4JIDxNk 7S4kSpuQ5576OYcQlUMGpYKN/rbDS3jV4Uj2/gogbLJwL1ueCoKbESzipDKZETS4jtYI VBsNczYTonwQ0au+tyI+xngJILuTSY33DsqYkHCufi+6Bl81vSteATugDkqvRQumzVcK eEdj+Kn7Fx3RQOu1IDsl4bKv9tYNXSyGR9Z7QuihK/7m5AX6LQq0BTRv0G1cerHUX2UZ An6w== 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=koHaz81lhgaXvonX4hggctipHiIr1mGPAtaGs6zrD+k=; b=sYWRQRB/144K0/2XroRlq0Rq75HqARKv5qAtP9daFtQy9+7KgH9GvVEcJTsfXEXZj5 uE4NfJxzw851m21P0DLmHtzR0MtUNq4uHKVBvV1r38jejKx8mnB6Mh/0H7Axs5sp+MXd UYihPIFG9H13AbuLxxN8b/Z+1XwneX1VnYwDUJlh/QhJfam3MWWTYljDl7ntsyi+4rxy CM8YSNbqE5SCokruLQPwblS3F6+8q43z1p9ebILGc1dNnbXGzdR0ifYKVFg2i4cHcol8 gagMclHevfvWBuKZtlMev9Q6vdtmXOFEjJQQlU3l1EbafdRfZ5qucWUnfwVeGUdeHhu4 3UqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rQFIT72E; 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 c8si9583186otk.67.2020.03.31.12.53.22; Tue, 31 Mar 2020 12:53:34 -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=rQFIT72E; 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 S1730105AbgCaTwq (ORCPT + 99 others); Tue, 31 Mar 2020 15:52:46 -0400 Received: from mail-qv1-f68.google.com ([209.85.219.68]:35478 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgCaTwq (ORCPT ); Tue, 31 Mar 2020 15:52:46 -0400 Received: by mail-qv1-f68.google.com with SMTP id q73so11565577qvq.2; Tue, 31 Mar 2020 12:52:45 -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=koHaz81lhgaXvonX4hggctipHiIr1mGPAtaGs6zrD+k=; b=rQFIT72Et7kZxvV9ZT3qf2ai3odXDA+Rw5lBTGYKfT+zcq9+3mmWUQQTnApBLrQlp9 uwfmGPNZNgHrsCE3XwLFl7juRRAwwKRPBWstIv+zzDOY5AK1CaG+jDkC1ILk3+hkvVWx hxgi8aDjdtkbyXlNU5Osjy9hzHjlvYn3flsqGLZ68rJKu6Lc63ucjDBiCJOZqQF0+5rk 8CtxZD+4608C2N/bQjEpmxHSq3UZ9zYW1hNjAzNsxoNe7Pio9EYKlcXQ2Voh+9gGXkeN cMe1cLQke6eieaREOjSACS6aRhLYoLetGBF201SPbq8FJr0NLJS/jE8mAJm+X+XXFzXX VIRA== 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=koHaz81lhgaXvonX4hggctipHiIr1mGPAtaGs6zrD+k=; b=T7AKpf+X7ZRxbvQKkgVvBcf/0+mk4mDWtE38tKPExmIrfsJNQaET6T9MR8aSKkXS3P 22aIYHNELXlFrqvwdLdvkGK1+cxWccNH4sZYERR31kpOPyURTUZ/HVX/wQ1WE9oBYJ8D njxUaG1779LMmFvomS6tRGtgBbXXHAyrsIUnl2CmMfajEtz+R4NP0xEzKmAV9kNzy0wR 5fFIPsmihkNFhbN40mtkp2BUSdDl/rDzx5qrPhhAWXo+cF7l4FBMgP8CGbLYyRAoMNPY yA1ga/ZZBfBbpWGmf2GaQqlxRhf131zOC2/CeEEYoSGRmn+I+a5DFarAn0kMn2001Wub 9MfQ== X-Gm-Message-State: ANhLgQ1nQPhHJmCS0uDP9dMdZlqmwgXw/d2vzpj3TUnOCDjShT7ScX45 7qJmsUDTXcoP1FnNRI8xxR9m2CisWfJZ1ybCLIG9+el0hqo= X-Received: by 2002:ad4:4182:: with SMTP id e2mr17704518qvp.247.1585684365293; Tue, 31 Mar 2020 12:52:45 -0700 (PDT) MIME-Version: 1.0 References: <20200331164719.15930-1-slava@bacher09.org> In-Reply-To: From: Andrii Nakryiko Date: Tue, 31 Mar 2020 12:52:34 -0700 Message-ID: Subject: Re: [PATCH] kbuild: disable DEBUG_INFO_SPLIT when BTF is on To: Slava Bacherikov Cc: Masahiro Yamada , Andrii Nakryiko , bpf , open list , Alexei Starovoitov , Daniel Borkmann 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 12:45 PM Andrii Nakryiko wrote: > > On Tue, Mar 31, 2020 at 9:57 AM 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. > > > > Signed-off-by: Slava Bacherikov > > --- > > lib/Kconfig.debug | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > > index f61d834e02fe..a9429ef5eec8 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 > > Thanks for following up! This looks good, but I think there are more > DWARF-related configs that should be banned. See [0] and [1]. If you > don't mind, let's use your patch to disable all of them in one go. So > can you please update and disable DEBUG_INFO_REDUCED and > GCC_PLUGIN_RANDSTRUCT? Thanks! > > [0] https://lore.kernel.org/bpf/202003311110.2B08091E@keescook > [1] https://lore.kernel.org/bpf/a2b1a025-6a70-c3a5-fc19-155f0266946a@fb.com > I guess at this point it should go against bpf tree, so please update header to [PATCH v2 bpf]. Please also add Reported-by and Fixes tag: Reported-by: Jann Horn Reported-by: Liu Yiding Fixes: e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux") Thanks! > > > help > > Generate deduplicated BTF type information from DWARF debug info. > > Turning this on expects presence of pahole tool, which will convert > > -- > > 2.24.1 > >