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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DF5D2C76196 for ; Tue, 28 Mar 2023 19:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wDDde6MZt7p3OCbtD7+oe2uuK8YFIwqCbB1gOwSi6Q8=; b=igYy5JJ46ZDsaH ujdtA2GL2vBTDFNTAvXX8lrFhOzctlwma+rsCGfHzLb6ZzCxXuBrgq5RAUavDpBq33n2uQnqoZ5Yt alUzlW4G+rYh1KRWzpIvRS0g5vjQ21cRCtdmx9RiZsr85cYwHafkCnMNwF5lDOlXVb1gaM/iVIDV2 DeEEubdDSp1JlkvDKJJtTyqzeCySpKZTpv9kGb14XYAFhMvZsZcdo63m3LwY+b07T3iMFaTYxPYj+ IgHrIbAJbcHwFhpSPoxZxxkw5Kg8hfvJS+WUavNcbpf2NVal0LtKQZ/i8qeqsnSjJKoEeqeJrfvwF hphEOAFNsqmUYkFCGbSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phFNE-00FhJK-1y; Tue, 28 Mar 2023 19:52:52 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phFNC-00FhIn-1X for linux-arm-kernel@bombadil.infradead.org; Tue, 28 Mar 2023 19:52:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QtTqpNLIGYAlrJHCZC4KqJvGBg6z9DffsySjcIjOl3w=; b=L035dA2Isv4ZQ4jBZUMkmlnO4x vw1pVsVLSWIBqtB0cYYdBt8s3vQExgkGOxhq3lzBIl6beTOqXwKAofF7RelzYXQf4+1h3DC+6WvW6 0/7oTWVzsf1vvn8BQoX9fVXhRYjTAirmyY6BWwipD5S8GzDhEeVmKxpGJpiukfYkfTcdZW4zQtP/K rY1cYn5OxPqONWbeZGS2yuMLFDKCKJf4RBI40Rg3TJEIjVxekutwwjKv6R034Lsuy6aFfNSxMCHVx DKwP9R/tlS2ST96LmGsYZNZsbn57AhQWVYL0YhtAYEkAuCZ+oyIJ4nMUmllNRLV+Civtx+XoPg38G zbC4Fk9g==; Received: from [187.19.239.165] (helo=quaco.ghostprotocols.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1phFN9-008iaU-Uw for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 19:52:48 +0000 Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C8F6F4052D; Tue, 28 Mar 2023 16:52:43 -0300 (-03) Date: Tue, 28 Mar 2023 16:52:43 -0300 From: Arnaldo Carvalho de Melo To: Eduard Zingerman Cc: Masahiro Yamada , Ard Biesheuvel , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Nicolas Schier , linux-kernel@vger.kernel.org, Martin KaFai Lau , "open list:BPF JIT for MIPS (32-BIT AND 64-BIT)" Subject: Re: [PATCH] arm64: remove special treatment for the link order of head.o Message-ID: References: <20221012233500.156764-1-masahiroy@kernel.org> <2d8f0889da0e3dfa9c1c8fe9da301d54636a2e6d.camel@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2d8f0889da0e3dfa9c1c8fe9da301d54636a2e6d.camel@gmail.com> X-Url: http://acmel.wordpress.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Em Tue, Mar 28, 2023 at 01:33:29PM +0300, Eduard Zingerman escreveu: > On Sat, 2023-03-25 at 20:42 +0900, Masahiro Yamada wrote: > [...] > > > Strange. > > > > > > I used the .config file Aurelien provided, but > > > I still cannot reproduce this issue. > > > > > > The vmlinux size is small as-is in the current mainline. > > > > > > [mainline] > > > > > > masahiro@zoe:~/ref/linux(master)$ git log --oneline -1 > > > 65aca32efdcb (HEAD -> master, origin/master, origin/HEAD) Merge tag > > > 'mm-hotfixes-stable-2023-03-24-17-09' of > > > git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm > > > masahiro@zoe:~/ref/linux(master)$ aarch64-linux-gnu-size vmlinux > > > text data bss dec hex filename > > > 24561282 8186912 622032 33370226 1fd3072 vmlinux > > > masahiro@zoe:~/ref/linux(master)$ aarch64-linux-gnu-readelf -S > > > vmlinux | grep -A1 BTF > > > [15] .BTF PROGBITS ffff8000091c0708 011d0708 > > > 000000000048209c 0000000000000000 A 0 0 1 > > > [16] .BTF_ids PROGBITS ffff8000096427a4 016527a4 > > > 0000000000000a1c 0000000000000000 A 0 0 1 > > > > > > [mainline + revert 994b7ac] > > > > > > masahiro@zoe:~/ref/linux2(testing)$ git log --oneline -2 > > > 856c80dd789c (HEAD -> testing) Revert "arm64: remove special treatment > > > for the link order of head.o" > > > 65aca32efdcb (origin/master, origin/HEAD, master) Merge tag > > > 'mm-hotfixes-stable-2023-03-24-17-09' of > > > git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm > > > masahiro@zoe:~/ref/linux2(testing)$ aarch64-linux-gnu-size vmlinux > > > text data bss dec hex filename > > > 24561329 8186912 622032 33370273 1fd30a1 vmlinux > > > masahiro@zoe:~/ref/linux2(testing)$ aarch64-linux-gnu-readelf -S > > > vmlinux | grep -A1 BTF > > > [15] .BTF PROGBITS ffff8000091c0708 011d0708 > > > 00000000004820cb 0000000000000000 A 0 0 1 > > > [16] .BTF_ids PROGBITS ffff8000096427d4 016527d4 > > > 0000000000000a1c 0000000000000000 A 0 0 1 > > > > > > > > > > > > I still do not know what affects reproducibility. > > > (compiler version, pahole version, etc. ?) > > > > > > > > > > > > > > > Aurelien used GCC 12 + binutils 2.40, but > > > my toolchain is a bit older. > > > > > > FWIW, I tested this on Ubuntu 22.04LTS. > > > > > > masahiro@zoe:~/ref/linux(master)$ aarch64-linux-gnu-gcc --version > > > aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 > > > Copyright (C) 2021 Free Software Foundation, Inc. > > > This is free software; see the source for copying conditions. There is NO > > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > > > masahiro@zoe:~/ref/linux(master)$ pahole --version > > > v1.22 > > > > > > masahiro@zoe:~/ref/linux(master)$ aarch64-linux-gnu-as --version > > > GNU assembler (GNU Binutils for Ubuntu) 2.38 > > > Copyright (C) 2022 Free Software Foundation, Inc. > > > This program is free software; you may redistribute it under the terms of > > > the GNU General Public License version 3 or later. > > > This program has absolutely no warranty. > > > This assembler was configured for a target of `aarch64-linux-gnu'. > > > > I did the same things in Deiban sid > > in order to use newer versions of tools. > > > Hi Masahiro, > > An upgrade from gcc 11 to gcc 12, BTF section increase and a number of > duplicate IDs reported by resolve_btfids matches the description of > the following thread: > > https://lore.kernel.org/bpf/Y%2FP1yxAuV6Wj3A0K@google.com/ > > The issue is caused by change in GNU assembler DWARF generation. > I've sent a patch to fix it a few weeks ago and it is merged in > dwarves master: > > a9498899109d ("dwarf_loader: Fix for BTF id drift caused by adding unspecified types") > > Could you please grab a fresh version of dwarves from: > > git@github.com:acmel/dwarves.git > > compile 'pahole' and try with? pahole 1.25 is long overdue, so let see if this got fixed with what is in master, please take a look, you can as well get it from: git://git.kernel.org/pub/scm/devel/pahole/pahole.git - Arnald o _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel