Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2004160rwn; Fri, 16 Sep 2022 04:24:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wmK0jhwHs/iVyeMyAKnQ1sktMrCJmhUVBwBLzPDZE/mSy47ezraPSCAfeEJ/VMm9Adpxe X-Received: by 2002:a17:907:1c96:b0:780:602c:677c with SMTP id nb22-20020a1709071c9600b00780602c677cmr3237846ejc.736.1663327480731; Fri, 16 Sep 2022 04:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663327480; cv=none; d=google.com; s=arc-20160816; b=KI69jR590w9RawMy1XL+8XtxNvsvqj9pvsYv8euyXFgmIYmo5zdYLcq0INqBSelI7H +vhXoul3l2gD+K7BCt3HfW3Artpj/NueYszBS3pLgjmsrgwanzb4smrdIoZQ6vg83phr ophp+QM8ZaPUgfo54+DNGSrmzNLVjqnidMAoTUahHjEru6NZWVRkCt7DLQr0EI8/dJOM AK6ynNTuY0twAeR5DLEHzwB1v3jUE7Gin2XYqTNEz43oRFg+yn5CJq93s0/Zd/m7ycTK BA/k0OC21fOD4689TodTV0XnwJdO0wot/bxVrgNDVXdC5/K0t4CpTN3CjSWU3jsPgeIT 7Jzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=H8nyvTf9ve0GbN2I2op39Iyn1g2lkhiCXgKh8sQpqeI=; b=zUq6QatIx1Ln9biBEFoIKJkws69On4oDbxkjLX31QLgeVrIuffeR5Ew8PtHDnNF68Q suGpS0DX2rGH2YJlwrF5LomZaSjmbesinHWa4T1YAsGrMXH03jvo6RanLO/RN9RMb1Bp 5+PbATTvUGsH+OMksUqD+QrZj/Kd3OEl2z33Wu5XzMeE/ABRiIpJ5UjeeaM3wdT9L7ut /liLQyZiiUf3L0iHgFdOsA07oxRfcrgrfGqhhZMCFBG1hB8m6+UfvQ9uJDZGKUXa4PAR YF7WgfP4fCgTfxNuTuf/DmHx04eAoTSBUlaKzYvqf/u37UnM/ou8zAPykTJzTfbWdm7L oTzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk37-20020a1709077fa500b007790ac5679csi16411148ejc.204.2022.09.16.04.24.15; Fri, 16 Sep 2022 04:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231414AbiIPKmm (ORCPT + 99 others); Fri, 16 Sep 2022 06:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbiIPKmU (ORCPT ); Fri, 16 Sep 2022 06:42:20 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6070BB693; Fri, 16 Sep 2022 03:24:02 -0700 (PDT) Received: from [89.101.193.67] (helo=[10.119.25.151]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1oZ8Tj-0005x7-Ln; Fri, 16 Sep 2022 12:21:47 +0200 Message-ID: <20ad29b8-be2c-8c1e-bd34-9709e5a9922f@leemhuis.info> Date: Fri, 16 Sep 2022 11:21:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH 5.15 102/107] kbuild: Add skip_encoding_btf_enum64 option to pahole Content-Language: en-US, de-DE To: Martin Rodriguez Reboredo Cc: Jiri Olsa , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20220906132821.713989422@linuxfoundation.org> <20220906132826.180891759@linuxfoundation.org> From: Thorsten Leemhuis In-Reply-To: <20220906132826.180891759@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1663323843;120a5380; X-HE-SMSGID: 1oZ8Tj-0005x7-Ln X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.09.22 14:31, Greg Kroah-Hartman wrote: > From: Martin Rodriguez Reboredo > > New pahole (version 1.24) generates by default new BTF_KIND_ENUM64 BTF tag, > which is not supported by stable kernel. Martin, when you wrote "not supported by stable kernel", did you mean just 5.15.y or 5.19.y as well? Because I ran into... > As a result the kernel with CONFIG_DEBUG_INFO_BTF option will fail to > compile with following error: > > BTFIDS vmlinux > FAILED: load BTF from vmlinux: Invalid argument ...this compile error when compiling 5.19.9 for F37 and from a quick look into this it seems this was caused by a update of dwarves to 1.24 that recently landed in that distribution. This patch seems to fix the problem (it got past the point of the error, but modules are still compiling). Ciao, Thorsten > New pahole provides --skip_encoding_btf_enum64 option to skip BTF_KIND_ENUM64 > generation and produce BTF supported by stable kernel. > > Adding this option to scripts/pahole-flags.sh. > > This change does not have equivalent commit in linus tree, because linus tree > has support for BTF_KIND_ENUM64 tag, so it does not need to be disabled. > > Signed-off-by: Martin Rodriguez Reboredo > Signed-off-by: Jiri Olsa > Signed-off-by: Greg Kroah-Hartman > --- > scripts/pahole-flags.sh | 4 ++++ > 1 file changed, 4 insertions(+) > > --- a/scripts/pahole-flags.sh > +++ b/scripts/pahole-flags.sh > @@ -17,4 +17,8 @@ if [ "${pahole_ver}" -ge "121" ]; then > extra_paholeopt="${extra_paholeopt} --btf_gen_floats" > fi > > +if [ "${pahole_ver}" -ge "124" ]; then > + extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_enum64" > +fi > + > echo ${extra_paholeopt} > >