Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3160381rwr; Sat, 29 Apr 2023 01:46:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Kw1EC9r4JmJldhwe/7hKABSJa/0dZI8OneDB4RtKpemSdGA+cdhSLzJ0Hw97zK/JVuUAQ X-Received: by 2002:a05:6a20:8e19:b0:f6:9492:93b8 with SMTP id y25-20020a056a208e1900b000f6949293b8mr8497231pzj.3.1682757989229; Sat, 29 Apr 2023 01:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682757989; cv=none; d=google.com; s=arc-20160816; b=ib27heWMGc6NDourWYAZHJTIZDJS2U7YM6m6B0+S46P1ZSAcn3b5yoIJ7aYt5g9r2V KvPPRVqFCZs1wTY4eCsXs78nODkWJQtJjUEvO+d7LOF5bUd/yObC+ByRqKwHs2ZM52D/ QFgphhGbZntG/4Q4OHBzQDIxdoirBXu89b0sQQnAb+5wSaymSZ4kyeoAh+fkK7qIDCKP a1ih8HbomY8+Z8l1pr7GfiIHI57b3v/J3syFj72QfSYLcbZD3sGLYDlDDKno+fcWUs60 NcpWgiwupKXKViAWs1Rt4ijzrDo1bQb/2ml3Ckrg45yy62b4G3qhlJ39ef3vhviD2NEh LKHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=ncDaDqDwwscytnxZqksS1TxOdUdsbxUd69f/Fut6Lo4=; b=eSC8X4/L1GSsHkexfVmWpZCaQ1kmZV1sBPu0IOQwmmTnNEn0W9A7+9oaUtekMOC7BV 67gsyVuBLU09fnP0Q42rwjBA8OrMspyAtml+2HDKlgsoYbkpb5eNWoKwTToyOaG10UUZ Ocx/EVYjRCSGaO7SkPFDxUu0SdwbnVYivB+h3E5jwOmBvNlnAbLWz2rxZ1zxQsjbDx7G b21x7x3gw5kVmVC7xzhI3lw99EI4OHVgH62olRHv8Fty1JyOtKB50Wrhv5S1KU/CIJ0R nbtMTTENQ8xqEC705UuM7fwWM9XfJh5ie5gFeYacBh86qByvbAYKmzUTeIVAMpCHwULG FXtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=cAYErngP; 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 v202-20020a6361d3000000b004fba312c234si22867050pgb.401.2023.04.29.01.46.08; Sat, 29 Apr 2023 01:46:29 -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; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=cAYErngP; 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 S230437AbjD2IRf (ORCPT + 99 others); Sat, 29 Apr 2023 04:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjD2IRe (ORCPT ); Sat, 29 Apr 2023 04:17:34 -0400 X-Greylist: delayed 1800 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 29 Apr 2023 01:17:33 PDT Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1003C172A; Sat, 29 Apr 2023 01:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=ncDaDqDwwscytnxZqksS1TxOdUdsbxUd69f/Fut6Lo4=; b=cAYErngPgHPVbC8ryW4Rp8W9/P IVMED0TPs9sVG9KZ9rz1T75JQtLdq+BPoDB0VJUiKaXrRbIbKGK5vnR8LFLDjZOYV5zx/QtpLDztP OUQmRGn5rqgjR0Ae9lNnub8ad2yx2yFtRubTLBdlLXN28kWiIZVgN6XtUX4VVjSDu1XfM1vkocRdw G6JB3RjPJ5g3FZZA80Ys+h+YKuoXl6nVVgMl9xhImAAJLS5e6JMFsuF7FgkoDs+ozdrMwJOxtPsT1 yPgglJbWeOHl+FqUpDn3lNuKUpPUz7hfkhkgccVY4beL0I1k8AlsC903Mf1z9tBMmn5HAKae3TzPL bOeKUzLQ==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1psf1d-00CzBD-UU; Sat, 29 Apr 2023 09:29:45 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.96) (envelope-from ) id 1psf1c-009rOz-1w; Sat, 29 Apr 2023 09:29:44 +0200 Date: Sat, 29 Apr 2023 09:29:44 +0200 From: Aurelien Jarno To: Arnaldo Carvalho de Melo Cc: Eduard Zingerman , 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: Mail-Followup-To: Arnaldo Carvalho de Melo , Eduard Zingerman , 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)" References: <20221012233500.156764-1-masahiroy@kernel.org> <2d8f0889da0e3dfa9c1c8fe9da301d54636a2e6d.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 2023-03-28 16:52, Arnaldo Carvalho de Melo wrote: > 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 > pahole 1.25 has been released, so I have tried a kernel build with it, and I confirm it fixes the issue. Thanks for the help. Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net