Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp671881ybb; Wed, 1 Apr 2020 07:40:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/fxdjVtlVp30fQRq+46CtvV6q/fOXHD/r4Nq/HBR2Pl0BbovfB7sELEq+wXTmBkqm/Ecp X-Received: by 2002:a9d:6c88:: with SMTP id c8mr16188723otr.272.1585752009673; Wed, 01 Apr 2020 07:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585752009; cv=none; d=google.com; s=arc-20160816; b=I6h03taXuvutKoiyYIZdDctCE1G9NT4dyyVnsHJaksVQFtlwPKWVvshLmPQi6bd/ku /ZmiehN1K+HyaLuH4ov4o4TrGmmxSrGlPUqeVSsKf44GaqQzlwyjPHt33cAhKtDnpXg6 VstWz2yG78+kgHQe1fGHlop/vKPA2LNgKdZmSle0WsO2b+6LbRElMn+xUjrTau/CBjuA aR/qeja3rdFySxqVqsTQjCxOmt2EcLziaLK209Mh2BxnoE0dtbUma8ojQidjy0s6wtWS SVV9N08I2yldvYndUjIUUe+BvuRQ4xp0MJFl7YkZwYjT7Ysz1xww1LJRK3+m5x0JpKQt xRmw== 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 :content-language:in-reply-to:mime-version:date:message-id:autocrypt :from:references:cc:to:dkim-signature:subject; bh=/k3lR9IcabACG2QOffF9hyiS96WAwdOqQmzY+4DKcNI=; b=FG5mDE5Qo31LRqrJxApTAXheHd66RP0ZJBV7mSxhYNrrxNOho/wRbGc4qEADgcg3Na GQr8hSAw0J0/BJUd/TeGiTXp9uiW/mqhD2dlaL2X3OxmJ6F3+gpVYPNxc0N0o5AZ9TKS y5IPyXJU1Nd5SQ7UowB/1iFJbPhzDXSPBa/8+vdvRNUZxvreTxzHXvs/UWhotLSXsBsn TG9HRdOhuw4g+kJwOEKN9W/4/7Tm9dxFvbcIhTh2SNZ3Qw5D/aWrtdW/93NX5La8tX2T JvkvN5E7UtH+NkDLGsL9ysqycXKT20ra6ZdM6QZuiOtzqJSfeslK0cwzUfdyegLq+Qi/ YFZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bacher09.org header.s=reg header.b="hOq2KR0/"; 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 b11si931933oii.11.2020.04.01.07.39.57; Wed, 01 Apr 2020 07:40:09 -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="hOq2KR0/"; 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 S1733046AbgDAOhx (ORCPT + 99 others); Wed, 1 Apr 2020 10:37:53 -0400 Received: from pub.regulars.win ([89.163.144.234]:60824 "EHLO pub.regulars.win" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732843AbgDAOhx (ORCPT ); Wed, 1 Apr 2020 10:37:53 -0400 Subject: Re: [PATCH v3 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bacher09.org; s=reg; t=1585751870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=/k3lR9IcabACG2QOffF9hyiS96WAwdOqQmzY+4DKcNI=; b=hOq2KR0/guhm4i76eN25x8DETEzk7vaB80g1Sk+vTt3LVOJHvqScJ4nBs+MIWs/LaO7uVV LQoQCJ7RzeensOrJSdA7jBgAvzXEJWRIGPg7eZQ1cI02TJKUaaxcpfA3Q3fzWvQLd0eCZg n4ZH+1CFJwxQa1+5wuOz9pDHs/zSWdc= To: keescook@chromium.org Cc: andriin@fb.com, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, jannh@google.com, alexei.starovoitov@gmail.com, daniel@iogearbox.net, kernel-hardening@lists.openwall.com, liuyd.fnst@cn.fujitsu.com, KP Singh References: <202004010033.A1523890@keescook> <20200401142057.453892-1-slava@bacher09.org> From: Slava Bacherikov Autocrypt: addr=slava@bacher09.org; prefer-encrypt=mutual; keydata= mQINBFFdcIUBEAC9HZz+DbqCs+jyJjpvRyped8U4bz716OZKvZCTH4fNxrrV0fYWRn7LJ/dU r5tBnwhmlTWD4v6hk88qpD9flagkSP4UuIAo+3aopxvrkyWXXYiEAjSL2uTFolcEO40HuYPk 7nprTEzHcHgcYq2wzJfE046gimzFYcUXkrv1gC89RdkwOgLTFb80QUpKyVeoKJWKWHPfRqGF FxpFwMnW3IrgZhOnl8X859WwKUc/agPz05LjaksGpAP8ayfruxtG/3Hl7OulYPWIkTuxHAtK xW9QL7Vt24P8rVLC7sgNZYcjaOcY70PCkGLnquETuIeeCwhKr/e2n+ymH+CxlAiUY+blNpO5 S5P+rwb0qPvGDzjF+Drdp0ye/S3kMa+FNrELW06Fp74p7BgsPgNsuBVg300JWMFXiS7YeMZV cyedAzGbcO8yxrY6ZnuNF8rLiZOYde79yN82wTNw/fWZtHhz8QJELZzMNjZd3/w61ztSs9ng mduiqv9EyNKlEEuxy6N4jGTQ2YYLE/YcIx654rCfpJWJhj2kDd4k2uNRrhJI7t4duHC86K4M HiOwC7PIKlIbtrpYnTZPXXcQHp69LDzxCAA6dgGkhjZsUTVci0rTEfRQjkXYvK/f3P1SHF1M EHoeEaclqvpkuvPcbHQ/TBwBJs+ekdFCTmBzv0UwqZKfaPW5yQARAQABtDJTbGF2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KNo7BGvxtVJG jnLxzRafXczMK2VDWEnDahLDlDHx6okXNy7VZacR5/CcK0u5MIhDl9fD/Th1FZz94HIrbIIX fdzjFNfqeB5uZahQOWYM9rJN6XJ+9C9Zk6OfHPSv7TafeO8v7WXQBZdLtkNtX6MS+xg= Message-ID: Date: Wed, 1 Apr 2020 17:37:49 +0300 MIME-Version: 1.0 In-Reply-To: <20200401142057.453892-1-slava@bacher09.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 01.04.2020 17:20, Slava Bacherikov wrotes: > 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 > Acked-by: KP Singh > Acked-by: Andrii Nakryiko > Fixes: e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux") > --- > lib/Kconfig.debug | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index f61d834e02fe..b94227be2d62 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -222,7 +222,9 @@ config DEBUG_INFO_DWARF4 > > config DEBUG_INFO_BTF > bool "Generate BTF typeinfo" > - depends on DEBUG_INFO > + depends on DEBUG_INFO || COMPILE_TEST I had to add this, since DEBUG_INFO which depends on: DEBUG_KERNEL && !COMPILE_TEST would block DEBUG_INFO_BTF when COMPILE_TEST is turned on. In that case allyesconfig will emit both: CONFIG_DEBUG_INFO_BTF=y CONFIG_GCC_PLUGIN_RANDSTRUCT=y > + depends on !DEBUG_INFO_SPLIT && !DEBUG_INFO_REDUCED > + depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST > help > Generate deduplicated BTF type information from DWARF debug info. > Turning this on expects presence of pahole tool, which will convert >