Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1226879ybl; Fri, 10 Jan 2020 14:30:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyb/Y3NoCWlZu65Yb/EWd2DCb1ZT8xq8MsmoTc4KW33lhaADYnON2/xYE67vBDy8J3+K1vK X-Received: by 2002:a9d:53c4:: with SMTP id i4mr4766789oth.48.1578695409512; Fri, 10 Jan 2020 14:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578695409; cv=none; d=google.com; s=arc-20160816; b=XReFqp39GPnhnT5FguNndEjmFktzifdgUyCHf4OgfH226RXPB12VAr2j3iYTymjZbj B9XHory3DT4x0pPbV72JJAV7CQGxc5xiKchTYfUkMz/hwhNpXCREaRPi4eJB1bJLtGgu uundAxVZTEzmTAq/6HHMIVS9FPVUn4NuHqzPW591TudiOB752aBZHlHMkquhZmf4hYaM rnGvrr/4TAkVCz/KrCC25Mgx+bAi/WhWV/ULbKbMCSpiT3r3oc0exd+r0VUZi9QIZ1Jh lcKqLaYBmnqBltJBKVBBKz1688SMl+UUrnEIOi5uEfpsJBlx7K+Eeo1yIRayCftgFyHw vK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=x259o5nx27ZRlzto7PD78cwP7Cv55o3XTQptM9EzIrM=; b=MVSPXaPfUkM7ae4ShTybjg/fwDwLLtztIADDmvpYcXuYOGPILmxHcODFKdm6gPgw/m ojcNX8n6wS1ekAdA1HY9vDh5lyThHgVDEAKJ0hLaoVEHzS4svkBSgA1MaHYtXvMaKpmT k/Cp2vvzK4E1pZMvZs/2VdLFNsKHcaFukpvU1+XPfsJ0x6O3Ou0ybcMR4wgPe6CjkxBA CJFWPDQKo1r4ztzrYU1tjGSFQP1ePMKlhWND+Uz6fJDk2caL5beRsqc2IvjSLpat2SUg R5R4UkJUHt+cPNpC3OGwc0fLaGclS4ovt2pGE2X64P0URUS1eJKvaNubPJZRV8v8a8pN HffA== 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 i13si2191017oth.175.2020.01.10.14.29.46; Fri, 10 Jan 2020 14:30:09 -0800 (PST) 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 S1727483AbgAJW2X (ORCPT + 99 others); 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