Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4897440rwl; Tue, 28 Mar 2023 12:57:03 -0700 (PDT) X-Google-Smtp-Source: AKy350aYmuhLBBesdFM4msa9c7x4vfU3UwRIGDBkx4eelDJ6y6vEhraT7s4q5/ekmGxnkMptbMY+ X-Received: by 2002:a17:903:124c:b0:1a1:85d4:a758 with SMTP id u12-20020a170903124c00b001a185d4a758mr19452211plh.12.1680033423171; Tue, 28 Mar 2023 12:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680033423; cv=none; d=google.com; s=arc-20160816; b=srckNzv0FIngp6wDTjWhFhJrvb2G7Z984zo4c+40QDaESEZ++ba4WTGbCdJLfDxhr/ finVhlml/FJGZbYmkfcJAAcWLJnLXwJZ3ahDfAKI1ERt1e6ejml0BhbIjjT9jOZ6XkdR vc19WCLyakkONJX8OHcRCRK26ts5kVTUKB5BlzwE9xlcQtXcc0K+QQ09A8TLt2DvnltO rxxyOtW668065wauH+3Uy2ZeucUADlTkcWFQsFChMT/YhFKkat+fJGka5JC+tnsMa91v zCZoo03cxfAF27su6BM3Pe7dOybokKsapezVbHGa/dwUVF35eQNzril2aFdo3yjhq9zn xyRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QtTqpNLIGYAlrJHCZC4KqJvGBg6z9DffsySjcIjOl3w=; b=q8dPHl/BUZpYxeUDiTroXNGnEnpVsXrlUiAnbqh5/T7nXlxh39QCso6svMEs8ZzEv+ j9cNydXOlEeK1V7yurDlscno5URfrkYXWLeUXbbpm75hMGFDEbhuhuMNBlioFbq+VsAO clmok3g85AYMJogupX3ZLL+aAygqKIFls8elmtoFI3TK016u8+03dTt7YY0kcZFTirXP PKgBO1h+9ev/8vAgN8bYeTteExuZ6Wu5MIXnrBjsFk0xVoUoeoR9S6ykIgJlusNYeUc9 VUOimBZH1ihdG4wwCnRpd/6ZcNHXHU5Do7Bl2b2lqM7Bgw0Y1t1m6HazBZvb9DsLsc00 AZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S8c83d6z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630209000000b0050fa56a18d9si20186142pgc.540.2023.03.28.12.56.29; Tue, 28 Mar 2023 12:57:03 -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=@kernel.org header.s=k20201202 header.b=S8c83d6z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbjC1Tww (ORCPT + 99 others); Tue, 28 Mar 2023 15:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC1Twu (ORCPT ); Tue, 28 Mar 2023 15:52:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA0E81BEF; Tue, 28 Mar 2023 12:52:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F12A1B81DF4; Tue, 28 Mar 2023 19:52:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E59DC433EF; Tue, 28 Mar 2023 19:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680033166; bh=3tCsQlZNxjpj6kRrRVaA2+D40G/G8omyRmcPC6eNHcs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S8c83d6zKDAseuUsmPwdWmhujxfPqFtrEXrW653rlLKUrkNLZqsnZfSf2rOmri2lF eblSB48mq0XMv5XNxHk/TSur5NY0H94GtwFqxAhZ6B6xyq1OXzxumv5C57bm/PmnUr LGRSRFfPPY+g8EPNJLtDGbY3jQipSeiMah3zR0CxiBcHrfFH/IaWe3ezeGGsKGsqVL HhFiGKP/Y3OixbpkKK47mEFSa82RCJrr2ju3/yTReI8G6JPU/aJSZhLacNNDrOUcVP nJtW4msn5ahphR3iPD5l/7lxjqeME9MNH7aqUZAfUpdDk4aJTni2/afC89IWzIX0WV aJGQepl2T6dUQ== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d8f0889da0e3dfa9c1c8fe9da301d54636a2e6d.camel@gmail.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 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