Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19514633rwd; Wed, 28 Jun 2023 10:15:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55KrqUaX+fu9DFNHrVhDdOITxkMAlC9Lt+2C0CS2KyFtBgAEfHcyW8ugKHs72pE1WidoH2 X-Received: by 2002:a17:902:b787:b0:1b8:17e8:5475 with SMTP id e7-20020a170902b78700b001b817e85475mr4717373pls.24.1687972509869; Wed, 28 Jun 2023 10:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687972509; cv=none; d=google.com; s=arc-20160816; b=oPY7FVAWJGOCbn2cur3sNcyF5K0VBnA5qd267HFSAht2N90o3KvxnaqmiuSNsSFZNg nTrO2VUpFwdy+WU8wmeKdoAipF/gFUYIwhAdTBhXg41s0ykMe2tJDjSdy17RGiiNOSIj 0qJecZOJWnEUCimqUhUihib2SlwvBbj8eSuPaW+KCqvcl7qRkSc7lK6Qy60lh/9XGQcm pbpD1nJCTbiQ/nEGi0UtPP8c+g64JbG3l+XkfUWeNNsmALO88UOTS77wQBiEq6Etsl86 hQQTH1NLrXRY5V0QOqC+6AUN87iwGOACRM6Jk2ULpE9hPXXNDfqN6O02jHe8KLN0ce/Z AC4g== 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=F3S6Ygd0ODIdIIXAEpJwPHDMOohYUSSvEUwZGWTEaS4=; fh=EDqS7TtxB6PJk72pIXdNdOPlMipSKwKNrKidhF+9NtQ=; b=zCxk4+Xa48bcv27Ya+mZ6xNNlf3usr7ywoi6/CELdd+1d5jyPNMvLIA4voGBgMkYFO pb2UYugPqCwePewzhgm0RyAXhRGhlSXTbBjxbjB/Yz1na+ecaRSIiUKNzFbvpLX7PtJo VOWGeMKUB+rSQJABO5p56boQca5rcAZfhoIXAt79hn1QzAIEt20RDp+DrZbWiFTrz0zk 5t2VZ1H6dNEXveYS8AEOj4iJsgVPft46YWMr6iqZcvnXA7pflYfJ8kvOp99Gnrc1/KI4 35FUiBUk7wyDS7Z3ZDhsOnWCKOzPcj5b6NF7MRMXSZoGQLIbFVibY8TZccOGcAAC6dHs fujA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQMP5mnm; 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 n10-20020a1709026a8a00b001b11168bdddsi6047545plk.520.2023.06.28.10.14.54; Wed, 28 Jun 2023 10:15:09 -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=GQMP5mnm; 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 S231406AbjF1RFf (ORCPT + 99 others); Wed, 28 Jun 2023 13:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229982AbjF1RFe (ORCPT ); Wed, 28 Jun 2023 13:05:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56F6C1BE4 for ; Wed, 28 Jun 2023 10:05:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E02946137F for ; Wed, 28 Jun 2023 17:05:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2060EC433C0; Wed, 28 Jun 2023 17:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687971932; bh=mNG2phQkDSi2Z55SBPtVSXzhKFAaIQvHo2PEEehdbmo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GQMP5mnmICxnr3/RzvVZpvtaVhIFXKl4rF98My1i7fStrM+rDcRKYZGvEhV0fSyDL j2xzDYK3xaQpzAj4eBld+c1Rhu3qmxBt/rcKtQCWbPQhM0SZ8EwSpWulaXrSB8nS7H XMj+FTpRAmKnRRsPsDltJi9k7Bp4Z7I+6FitmSa2hTleOXK/yY4/+OGbcR01xTR6W5 fcNP3SpwhLfnpQabkybMPHwjbGJM46BX1WhzvStrZodkK5s+RHL+FLtE+vFEl/aUA2 uE8wdJBJ74gCb2vyFUvJjPE5Bdf7Jn+278rSHupftt835HHmWOJdTP/EAaxFB7Bz6g XJHn72G7TuEDw== Date: Wed, 28 Jun 2023 10:05:30 -0700 From: Josh Poimboeuf To: Michal Kubecek Cc: Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: build failure after commit eb0481bbc4ce ("objtool: Fix reloc_hash size") Message-ID: <20230628170530.derop5w2gtmgjeis@treble> References: <20230628115825.ahqejf5y4hgxhyqj@lion.mk-sys.cz> <20230628151654.zqwy5zsc2cymqghr@treble> <20230628154432.4drtq4pivlkkg6v2@lion.mk-sys.cz> <20230628160631.ryt4icjeck627efs@lion.mk-sys.cz> <20230628164554.womrvwq7chnjtva4@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230628164554.womrvwq7chnjtva4@lion.mk-sys.cz> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jun 28, 2023 at 06:45:54PM +0200, Michal Kubecek wrote: > On Wed, Jun 28, 2023 at 06:06:31PM +0200, Michal Kubecek wrote: > > On Wed, Jun 28, 2023 at 05:44:32PM +0200, Michal Kubecek wrote: > > > On Wed, Jun 28, 2023 at 08:16:54AM -0700, Josh Poimboeuf wrote: > > > > Interesting. Can you add the below patch and also do: > > > > > > > > make net/ipv4/netfilter/iptable_nat.o OBJTOOL_ARGS="--stats" > > > > > > > > and report the output? > > > > > > With these, I get > > > > > > ... > > > CC [M] net/ipv4/netfilter/iptable_nat.o > > > nr_sections: 40 > > > section_bits: 10 > > > nr_symbols: 41 > > > symbol_bits: 10 > > > mmap reloc: Invalid argument > > > make[1]: Leaving directory '/srv/ram/kobj' > > > > Not sure if it's of any use but I also tried to run it under strace and > > the failed mmap() call seems to be > > > > 18761 mmap(NULL, 0, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EINVAL (Invalid argument) > > > > Perhaps the problem could be that elf->num_relocs may be zero? > > I added a printf() and got > > size = -4991471925827290382 = 0xbababababababaf2 > > for the elf_alloc_hash() invocation resulting in failed mmap(). Wut. Can you share the .o file? -- Josh