Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp637ybb; Tue, 31 Mar 2020 15:42:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt1innYNt25x5PbUsgAaU5sdEZY7Goy/Rv5MxLsLgvW/K283rwgtyG2GSCXbB0XbROu5Ndk X-Received: by 2002:a05:6830:1f56:: with SMTP id u22mr15243258oth.55.1585694575450; Tue, 31 Mar 2020 15:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585694575; cv=none; d=google.com; s=arc-20160816; b=M/9SPnAzj9SD2VYV73G+2DpUMTEf0iCcvH9F9hdPvWVtw4S6fMg78XHVi5XLPWwTIf 2YcphXIyI/C7I61QBdATIzIA3eS1Hg/nFnUtKEF1+PmkGXy70KlL/zcxmnP0D4wrYM/4 vOYXhdQUcFkhHX4+MFc7x3q7QpWm3JwGLDTd3IUwVFAAMiGt0tXVs3yVVn0HCnR3W75z 3hsn8Ikk9+qrJv9l5RFUFryTVytyyp2+41HwifJ74n+VduIQ8bt4BZ9BtKNzhvYQGjFc aE7Uj0iAzSNdzY6tXJlWN0z4DzSnASE5kkUiuu4+myxiOV7XqtbOH1SrJSPXKOfoXwyX dDog== 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-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=jY5b0DeIGw0kq+dmH/vJgCrU2SOoRk0fZBuTs/xmVo0=; b=mBtUJA4/nDdCsO/o+Cnys/b8W1NWFSyFvV32qgMCu+9F8h1Q94I029njvJCIZ6B0Fa wsXc4c4s+4OM7EuSibbC5DrcEHDHf9JtaU942dpLhYCij9n5DZuAdM930yUJkvcBkAA/ CHo1OOf/g0BeLUiwv6dLnMyJyZoG2cA2o+uohhWhR44ZdmsY2u90KtH63B0oborjks/O Q0TaPEzVyIDW5vz/7ylfGifb1bvDztvL1Ko7/xi4pX24++8hHXOWAAeV4bi++VVAY4iL ffVxmZjWnlHLKyeWx3fAf5j4S7ab2gz41e/PxnW7y/6iJC73ujrDPldTEvo+dfsBudLQ DUfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VDiCMTXy; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si137944oix.42.2020.03.31.15.42.25; Tue, 31 Mar 2020 15:42:55 -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=@chromium.org header.s=google header.b=VDiCMTXy; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731362AbgCaWk1 (ORCPT + 99 others); Tue, 31 Mar 2020 18:40:27 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44554 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729153AbgCaWk1 (ORCPT ); Tue, 31 Mar 2020 18:40:27 -0400 Received: by mail-wr1-f67.google.com with SMTP id m17so28186423wrw.11 for ; Tue, 31 Mar 2020 15:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jY5b0DeIGw0kq+dmH/vJgCrU2SOoRk0fZBuTs/xmVo0=; b=VDiCMTXyKUNt4iheUBH8m+6xsiIx/rgJTGicdZ/BWJF7GmTfsrCY7g+447EMzve3aq Y+ldUezP4BlAWoR5IQfLpc6iFnWWr1G6v9bb02zEQLrKSg4qsJ4HrBuw7+exNKd9bAfU jdqJY5s8D3nIc5Tz5vqTofy5j8BNQJ7duYeCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jY5b0DeIGw0kq+dmH/vJgCrU2SOoRk0fZBuTs/xmVo0=; b=p/zNUrASDXHcKTw9Xgda9GvHn0El3yimMO9O9w1l4fQOXYjwUYj1O+nRM7hlr1GC0D R1bsPOfQk/jtSYdTSMLe9JZmWtVncB+4H4R1JYMw3YcP/r3uWXqpXJELQIrvLBBctFpp gA6rDggdRq6Ia8DqmtUNBF4yd5u3DkNDx9RJVtXSdihU4S5l+ge9TJrmpf6Iw2JVGOg7 9azPZ+G8chc7iMH/OcfHN3Jhe47qacwj+t8RlQL89Ym6Orus9rOiZ3Ux4H1Klf/DwlcP RheWiEHQcZvEsjvME9ZgpWRIxpOc7wb27MP7cKWHaA8a0IzdZBlMVqRiJNRLf4+9+CtJ 7DIg== X-Gm-Message-State: AGi0PuZ6SJ3SS7ytRd1wcsjbh+P5NMEp6dqwwyAkFJqzZWejTER1joRR NhRtV723P4h3EqqbPT8r2zTOUCr9CuM= X-Received: by 2002:adf:fe52:: with SMTP id m18mr976140wrs.162.1585694424872; Tue, 31 Mar 2020 15:40:24 -0700 (PDT) Received: from google.com ([2a00:79e0:42:204:8a21:ba0c:bb42:75ec]) by smtp.gmail.com with ESMTPSA id 138sm79981wmb.21.2020.03.31.15.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 15:40:24 -0700 (PDT) From: KP Singh X-Google-Original-From: KP Singh Date: Wed, 1 Apr 2020 00:40:22 +0200 To: Slava Bacherikov Cc: andriin@fb.com, keescook@chromium.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, jannh@google.com, alexei.starovoitov@gmail.com, daniel@iogearbox.net, kernel-hardening@lists.openwall.com, Liu Yiding Subject: Re: [PATCH v2 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF Message-ID: <20200331224022.GA23586@google.com> References: <20200331215536.34162-1-slava@bacher09.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331215536.34162-1-slava@bacher09.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-Apr 00:55, 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") I can say that I also got invalid BTF when I tried using DEBUG_INFO_REDUCED. So here's a first one from of these from me :) Acked-by: KP Singh > --- > 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 >