Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3921411ybb; Tue, 31 Mar 2020 14:58:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIE600+wsboxccjMTiUqrKAhM8+Z2LEvcqjBIPKGXgiDbkZyCtLSIxIDawIka7TB9DLiuS3 X-Received: by 2002:aca:f384:: with SMTP id r126mr723430oih.41.1585691880417; Tue, 31 Mar 2020 14:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585691880; cv=none; d=google.com; s=arc-20160816; b=pmswIHYfCvEQ1/xFpLlZwi8c9mkrxp8t8bkNb2h02lcgf5BEKYvYq1puOvTKawV5+O Vk86juAQcoSPGGIFsJ8Orq28aVVPR2GfLvqsi8SAu4d+LueqaM/JoFllUAwF+lF/J7Fk O2uuj+lNmpfGd6r+LaNIKnjHF/IwbJyJZH2HF3fLDfqcYuMSxjGPimchYOglx/oKIhlH +hD11+h/z28yn9w0pXAGDfH41H+pFfGYT0EGRKQD6Y4gqd1kOjM9PhXfaiXih6PBOz/z yKgRufbPLVzFCJNkNqyfNzFRF8E4WOKeq/JwFSk6vmevCtCazbsBNcOSKsikkhpCjhth K+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=YT3MtOxItDdm7TWprAjBs6HigHaG9iwHyVl+Qij+P7Q=; b=Fm5446poABI3J0GBH4ARagKroC7IZkNAZHXeK0xSyckDdldDknI5hISAG3/1nnql+Y 28dwuneh0H8/lzl9ySm2YAVKIXQgdEIJcyHk8R4LHbPt0AK+VXqNUHCWGKDRiza9zeDQ +Yw3Lo9EVVpoohCzEUU4cbep+ID9dF/DVG/Wbmcz2mFJtM39aVrifsQ9LF86wId8nqbx AZqfmgzyd+yMf8D6U65/5dKbsKbE2HuCqx0Vykhdt64nNXzlZn7ho2jt3/QkkQNnULuB K6aR3M04uLkDkT7N/EPNaIBj7U8va4fT6PNOb6AX8zIdbP2bSR1p7hX0BbBpz8uNsvgA 95gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bacher09.org header.s=reg header.b=sA0E+eeY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si73363oib.246.2020.03.31.14.57.48; Tue, 31 Mar 2020 14:58:00 -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=@bacher09.org header.s=reg header.b=sA0E+eeY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731523AbgCaV47 (ORCPT + 99 others); Tue, 31 Mar 2020 17:56:59 -0400 Received: from pub.regulars.win ([89.163.144.234]:47040 "EHLO pub.regulars.win" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgCaV46 (ORCPT ); Tue, 31 Mar 2020 17:56:58 -0400 From: Slava Bacherikov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bacher09.org; s=reg; t=1585691814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YT3MtOxItDdm7TWprAjBs6HigHaG9iwHyVl+Qij+P7Q=; b=sA0E+eeYQDfev3TzgMOUJL7ighcMggnMl5MnYXjtYSA9nOlaYPPtalbXpF4MzDd1DK1Vdm x9LhwSZ9OPigKOjS6GPiXHp22dMJnDFWcDwsykFS9EgBoQ0b4MR4M2VaLVcMgp9mGJc54R eyVOhTIXjHKjZ2LUSGqtAE4Ltsspl1Q= To: andriin@fb.com Cc: 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, Slava Bacherikov , Liu Yiding Subject: [PATCH v2 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF Date: Wed, 1 Apr 2020 00:55:37 +0300 Message-Id: <20200331215536.34162-1-slava@bacher09.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") --- 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