From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D08EC33CA4 for ; Fri, 10 Jan 2020 22:28:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 125882082E for ; Fri, 10 Jan 2020 22:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727498AbgAJW2X (ORCPT ); Fri, 10 Jan 2020 17:28:23 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:58527 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727369AbgAJW2X (ORCPT ); Fri, 10 Jan 2020 17:28:23 -0500 Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alexandre@ghiti.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2EFE3240002; Fri, 10 Jan 2020 22:28:18 +0000 (UTC) Subject: Re: Re: linux-next: build warning after merge of the bpf-next tree To: Stephen Rothwell , Daniel Borkmann , Alexei Starovoitov , Networking Cc: Linux Next Mailing List , Linux Kernel Mailing List , ppc-dev , linux-arm-kernel@lists.infradead.org, zong.li@sifive.com References: <20191018105657.4584ec67@canb.auug.org.au> <20191028110257.6d6dba6e@canb.auug.org.au> From: Alexandre Ghiti Message-ID: Date: Fri, 10 Jan 2020 17:28:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191028110257.6d6dba6e@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: sv-FI Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi guys, On 10/27/19 8:02 PM, Stephen Rothwell wrote: > Hi all, > > On Fri, 18 Oct 2019 10:56:57 +1100 Stephen Rothwell wrote: >> Hi all, >> >> After merging the bpf-next tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> WARNING: 2 bad relocations >> c000000001998a48 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_start >> c000000001998a50 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end >> >> Introduced by commit >> >> 8580ac9404f6 ("bpf: Process in-kernel BTF") > This warning now appears in the net-next tree build. > > I bump that thread up because Zong also noticed that 2 new relocations for those symbols appeared in my riscv relocatable kernel branch following that commit. I also noticed 2 new relocations R_AARCH64_ABS64 appearing in arm64 kernel. Those 2 weak undefined symbols have existed since commit 341dfcf8d78e ("btf: expose BTF info through sysfs") but this is the fact to declare those symbols into btf.c that produced those relocations. I'm not sure what this all means, but this is not something I expected for riscv for a kernel linked with -shared/-fpie. Maybe should we just leave them to zero ? I think that deserves a deeper look if someone understands all this better than I do. Alex From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C120C282DD for ; Fri, 10 Jan 2020 23:02:11 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B5D342072E for ; Fri, 10 Jan 2020 23:02:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5D342072E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47vdly66Y0zDqkB for ; Sat, 11 Jan 2020 10:02:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=ghiti.fr (client-ip=217.70.178.242; helo=mslow2.mail.gandi.net; envelope-from=alexandre@ghiti.fr; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Received: from mslow2.mail.gandi.net (mslow2.mail.gandi.net [217.70.178.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47vd4R4jdKzDqgD for ; Sat, 11 Jan 2020 09:31:16 +1100 (AEDT) Received: from relay10.mail.gandi.net (unknown [217.70.178.230]) by mslow2.mail.gandi.net (Postfix) with ESMTP id AF6993ACEDB for ; Fri, 10 Jan 2020 22:28:56 +0000 (UTC) Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alexandre@ghiti.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2EFE3240002; Fri, 10 Jan 2020 22:28:18 +0000 (UTC) Subject: Re: Re: linux-next: build warning after merge of the bpf-next tree To: Stephen Rothwell , Daniel Borkmann , Alexei Starovoitov , Networking References: <20191018105657.4584ec67@canb.auug.org.au> <20191028110257.6d6dba6e@canb.auug.org.au> From: Alexandre Ghiti Message-ID: Date: Fri, 10 Jan 2020 17:28:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191028110257.6d6dba6e@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: sv-FI X-Mailman-Approved-At: Sat, 11 Jan 2020 09:59:57 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zong.li@sifive.com, Linux Next Mailing List , ppc-dev , Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi guys, On 10/27/19 8:02 PM, Stephen Rothwell wrote: > Hi all, > > On Fri, 18 Oct 2019 10:56:57 +1100 Stephen Rothwell wrote: >> Hi all, >> >> After merging the bpf-next tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> WARNING: 2 bad relocations >> c000000001998a48 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_start >> c000000001998a50 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end >> >> Introduced by commit >> >> 8580ac9404f6 ("bpf: Process in-kernel BTF") > This warning now appears in the net-next tree build. > > I bump that thread up because Zong also noticed that 2 new relocations for those symbols appeared in my riscv relocatable kernel branch following that commit. I also noticed 2 new relocations R_AARCH64_ABS64 appearing in arm64 kernel. Those 2 weak undefined symbols have existed since commit 341dfcf8d78e ("btf: expose BTF info through sysfs") but this is the fact to declare those symbols into btf.c that produced those relocations. I'm not sure what this all means, but this is not something I expected for riscv for a kernel linked with -shared/-fpie. Maybe should we just leave them to zero ? I think that deserves a deeper look if someone understands all this better than I do. Alex From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6879AC282DD for ; Fri, 10 Jan 2020 22:28:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A70620721 for ; Fri, 10 Jan 2020 22:28:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SQsPZ76X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A70620721 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pxGE8Wcpj7OSB6w2B8o51AY1SSRuZ2cr4uszRexT0yg=; b=SQsPZ76XeHTowzgFxFxVMFt16 YMqQYYbZd2N0bckUpaU6X5PFQcpbMtsVeJSMDJzFJnvmRJMAkHEeRBs6xstujKg6t0H4O0DHEypJ5 CSAcJ2YxoeHdW+BpDVI/PlgtYCV0F48tlpZZ7UP6KXaCOxKxaACrCRzYie1VV2gohJ4CTJP/x8ynd NkIJnbI1WUBI8/gNy9kNFoa5+NaAkGtffNPac0sdYGAnuKpGkKjE7ZrJK4NvhYtwHE2MJyZgULQz8 cHmR2+p6E4eRRstXZAeImkrR5T+yumcH/9P9+5PvbURsYCviIopTFf56Vas52MtlDhXBT97S+2pPB 0K1G9bqlQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iq2lb-0008CI-Dw; Fri, 10 Jan 2020 22:28:31 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iq2lY-0008B5-1S for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2020 22:28:29 +0000 Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alexandre@ghiti.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2EFE3240002; Fri, 10 Jan 2020 22:28:18 +0000 (UTC) Subject: Re: Re: linux-next: build warning after merge of the bpf-next tree To: Stephen Rothwell , Daniel Borkmann , Alexei Starovoitov , Networking References: <20191018105657.4584ec67@canb.auug.org.au> <20191028110257.6d6dba6e@canb.auug.org.au> From: Alexandre Ghiti Message-ID: Date: Fri, 10 Jan 2020 17:28:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191028110257.6d6dba6e@canb.auug.org.au> Content-Language: sv-FI X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200110_142828_217459_3948FDCF X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zong.li@sifive.com, Linux Next Mailing List , ppc-dev , Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi guys, On 10/27/19 8:02 PM, Stephen Rothwell wrote: > Hi all, > > On Fri, 18 Oct 2019 10:56:57 +1100 Stephen Rothwell wrote: >> Hi all, >> >> After merging the bpf-next tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> WARNING: 2 bad relocations >> c000000001998a48 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_start >> c000000001998a50 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end >> >> Introduced by commit >> >> 8580ac9404f6 ("bpf: Process in-kernel BTF") > This warning now appears in the net-next tree build. > > I bump that thread up because Zong also noticed that 2 new relocations for those symbols appeared in my riscv relocatable kernel branch following that commit. I also noticed 2 new relocations R_AARCH64_ABS64 appearing in arm64 kernel. Those 2 weak undefined symbols have existed since commit 341dfcf8d78e ("btf: expose BTF info through sysfs") but this is the fact to declare those symbols into btf.c that produced those relocations. I'm not sure what this all means, but this is not something I expected for riscv for a kernel linked with -shared/-fpie. Maybe should we just leave them to zero ? I think that deserves a deeper look if someone understands all this better than I do. Alex _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel