Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2220124ybb; Thu, 2 Apr 2020 15:50:46 -0700 (PDT) X-Google-Smtp-Source: APiQypL7Z6gCt5G00mSTwAXp1uJyY8TpmM1qptuCKPoG2A4r/LHX2tvmPvzDG2dEIsCPptLXfFjl X-Received: by 2002:aca:3a83:: with SMTP id h125mr1007818oia.64.1585867845870; Thu, 02 Apr 2020 15:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585867845; cv=none; d=google.com; s=arc-20160816; b=zf531ibWoPT5kRtJp3Gg7KH4tYvN0OpdXlT8AJh7uFF+wz9PvyM7wnjjzYtPCOx0XX FidGilkC4yQQQBWluWEulYUSZ8ARJohklO3V91YD2AeN1CD9613acPHjtR1WOE70fouM xVECnNf0toduMzwKNViOwvFl9MMncik8zoIbY5hyBxX4PKX1/AE0pkAuDvNQpie85VEt SA+nm+wOPYDx0vAcSIi995Z8NKhscAS0g25PO4P8SsvNqjv+INCL4GkOBAbCydD6NWMX bax0+WQmWCje3hSSdD8henlfszwhD5BfVaiAk0qCB6ExGmJc8e5Kk3HMpWzrTMpXktVV 3DuQ== 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:user-agent:date :message-id:from:references:cc:to:subject; bh=U0Vbr9DF48pZ26Nxyhr7sMnNV2ZCDaX3LdGDf23D3qg=; b=meEi+ZRRK7LunkPDBEa5x/VAbsgXOl33CtF8rJdky/LCdHa8+c4yjHRrHmGjSl6nHe fzIU9Qyeyr4TDWtKaP7RhbvkpzzkZyoJxCSwZEBHuJtMqM1kyUoTMbRow66Bn0WvQzG2 2lvpAV+A4KAYQXkGqt+RxNIYW6Yb5r6PWanW23bJnCrdGFM5p6tbuVF6kSXxsF0by0ij DWYW138SK/xC52Zu7I3uRbhz6Zu+8ZoD93YRs1X0kfwXrhHBncpRW4jaI0SQ+19BjHuu uF8UnqReBPsdSyB50qMqlpBH3O4XDvCJfG6/2r7R2wjV8AxVnFdJMUpttuJnxlw6J4VC kD3g== ARC-Authentication-Results: i=1; mx.google.com; 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 v14si3268356oth.49.2020.04.02.15.50.32; Thu, 02 Apr 2020 15:50:45 -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; 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 S2389427AbgDBWuE (ORCPT + 99 others); Thu, 2 Apr 2020 18:50:04 -0400 Received: from www62.your-server.de ([213.133.104.62]:34828 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387919AbgDBWuE (ORCPT ); Thu, 2 Apr 2020 18:50:04 -0400 Received: from sslproxy05.your-server.de ([78.46.172.2]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jK8et-0004Gd-BY; Fri, 03 Apr 2020 00:49:59 +0200 Received: from [178.195.186.98] (helo=pc-9.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK8es-000S0u-Vb; Fri, 03 Apr 2020 00:49:59 +0200 Subject: Re: [PATCH v5 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF To: Slava Bacherikov , andriin@fb.com Cc: keescook@chromium.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, jannh@google.com, alexei.starovoitov@gmail.com, kernel-hardening@lists.openwall.com, liuyd.fnst@cn.fujitsu.com, kpsingh@google.com References: <202004021328.E6161480@keescook> <20200402204138.408021-1-slava@bacher09.org> From: Daniel Borkmann Message-ID: Date: Fri, 3 Apr 2020 00:49:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200402204138.408021-1-slava@bacher09.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25770/Thu Apr 2 14:58:54 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/20 10:41 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 > Acked-by: KP Singh > Acked-by: Andrii Nakryiko > Reviewed-by: Kees Cook > Fixes: e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux") Applied, thanks!