Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19398739rwd; Wed, 28 Jun 2023 08:49:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5elYfb+uxo8qxWRNdur0t2KZpvJHdLM0IIYFiLmhXYsvw5iN8O8IokvdQvafCYdquyaJCY X-Received: by 2002:a2e:94c1:0:b0:2b1:daca:676f with SMTP id r1-20020a2e94c1000000b002b1daca676fmr22109340ljh.36.1687967365079; Wed, 28 Jun 2023 08:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687967365; cv=none; d=google.com; s=arc-20160816; b=ZGczuieUt5jSd6GtzgEB63TwWBJeLj+FDr6YfkOTFAl4mw0g+rX66gzFFDGTwJx0OE /VTB5ic6qKqKar4vO1plEkyTcQZKkk4Rb3WJ9pHH+nsUSiBq2T5qs44/Gt5b2req9FoB ex2IY1H4FmLcLtujWKN+BgYIUdPO5YJ+Jwvtacb3k8ZjhvQS2rLVpN/SLf+rx1XEaKor ErPbHXU5Wm5akJawAvIGlnvPKSA7p+0o/f/dlkYvV4qGYjlcYCK27xFufiV51GKXRJeN pNRMfckRtTQa+P2/AETq+5Iw0SesaR7muAIn3q6NvkStPqSSfDabcag2wr0NiHyu0Atv lY4g== 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=jn/XJS2A3EXnbsdlnsb8SGDQKMS/yyTD6sT4zlreXQA=; fh=EDqS7TtxB6PJk72pIXdNdOPlMipSKwKNrKidhF+9NtQ=; b=qI9dYcoBUxnuylb3gOrhCBDh4Zg2a/FNTyDyoBm9m9CT0lPCwbIGnES0uCeovsLLBp ht+ZQftpAvDVMcJDJDmVi2ugDDUY2o4xEhiqEHtjPDZ7/SQ0/cgxh9xaO+UQIJSYCpAT REZTdcQx7L5ndYG+7eSdspJxuMBc6hGjq93B/Cvlko+ebszHzGZO+OLz1X863ccvfrEl Rta3IPL6G/ziEGDEBj7xidKJbOUcSjOTBpsJEdMnn7v64R+swdIEAyeKHDRg2b5JbLbw 0ULQQfwUJh3CXGr5XBx22J1Y3xSUPmGQaWgmJWPYh7l3ZciztJIgT6ZJL2ifQxOAcEVm q62Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WG9xXnAs; 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 x16-20020aa7d390000000b0051d97fd68basi3894311edq.466.2023.06.28.08.48.59; Wed, 28 Jun 2023 08:49:25 -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=WG9xXnAs; 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 S232192AbjF1PRg (ORCPT + 99 others); Wed, 28 Jun 2023 11:17:36 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:34444 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjF1PQ5 (ORCPT ); Wed, 28 Jun 2023 11:16:57 -0400 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 0A6126134E for ; Wed, 28 Jun 2023 15:16:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51666C433C0; Wed, 28 Jun 2023 15:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687965416; bh=jjf+kfT9fKIB6GXNlKvdE6OVLtJk7SBTP2MRYbNyBNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WG9xXnAsMJ9uF92wZ8tsphViOep0uiwkifmqIpFJJYK8ms1VYbCZn6B07OOpsa7sM W4yrmg628aFBD/6vW29SSQVtyfG1KjjEA8KLsuryHzlOv0cV0vvzEyU4gM+sLq+slO bg4sKMHxQpfPBBbjTHNIIIZYnBb4gOKFs+0PhDKc+mmnoCOYFKEQcAwGDipL+0pyZ0 cMn7pmVGN9DjpbYy+i1mbgmiwe9IBVUPiVbLkLP4NTlPhn3UhttP9mxG1SYEayPq1d jTeg8WkJJKwUR2QFMnt8RQJmME/ZBFGHrcXEL4KQXQgU4aqlsptHdoMIPUmqBNw5rz V3vn54xqjSqtQ== Date: Wed, 28 Jun 2023 08:16:54 -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: <20230628151654.zqwy5zsc2cymqghr@treble> References: <20230628115825.ahqejf5y4hgxhyqj@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230628115825.ahqejf5y4hgxhyqj@lion.mk-sys.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28, 2023 at 01:58:25PM +0200, Michal Kubecek wrote: > Hello, > > this morning, mainline kernel builds started to fail on my desktop like > this: > > mike@lion:~/work/git/kernel-upstream> mkdir /srv/ram/kobj > mike@lion:~/work/git/kernel-upstream> make -j24 CC=gcc-13 O=/srv/ram/kobj defconfig >/dev/null > mike@lion:~/work/git/kernel-upstream> make -j24 CC=gcc-13 O=/srv/ram/kobj all >/dev/null > net/ipv4/netfilter/iptable_nat.o: warning: objtool: mmap fail reloc > net/netfilter/xt_mark.o: warning: objtool: mmap fail reloc > net/netfilter/xt_nat.o: warning: objtool: mmap fail reloc > net/netfilter/xt_LOG.o: warning: objtool: mmap fail reloc > net/netfilter/xt_MASQUERADE.o: warning: objtool: mmap fail reloc > net/netfilter/nf_log_syslog.o: warning: objtool: mmap fail reloc > net/netfilter/xt_addrtype.o: warning: objtool: mmap fail reloc > fs/efivarfs/efivarfs.o: warning: objtool: mmap fail reloc > drivers/thermal/intel/x86_pkg_temp_thermal.o: warning: objtool: mmap fail reloc > vmlinux.o: warning: objtool: mmap fail reloc > incomplete ORC unwind tables in file: vmlinux > Failed to sort kernel tables > make[2]: *** [/home/mike/work/git/kernel-upstream/scripts/Makefile.vmlinux:35: vmlinux] Error 1 > make[2]: *** Deleting file 'vmlinux' > make[1]: *** [/home/mike/work/git/kernel-upstream/Makefile:1256: vmlinux] Error 2 > make: *** [Makefile:226: __sub-make] Error 2 > > I bisected the failure to commit > > eb0481bbc4ce ("objtool: Fix reloc_hash size") > > I also tried gcc11 and building on a normal filesystem (rather than > tmpfs) but the result is still the same. Different configurations (e.g. > allmodconfig) only show more modules with "mmap fail reloc". The machine > has 64 GB of RAM and both ulimit -m and ulimit -v show "unlimited". > Anything idea what else I should try? > > Michal Kubecek Interesting. Can you add the below patch and also do: make net/ipv4/netfilter/iptable_nat.o OBJTOOL_ARGS="--stats" and report the output? ---8<--- diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index d420b5d2e2b6..4d5559ab4668 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -81,7 +81,7 @@ static inline void __elf_hash_del(struct elf_hash_node *node, PROT_READ|PROT_WRITE, \ MAP_PRIVATE|MAP_ANON, -1, 0); \ if (__elf_table(name) == (void *)-1L) { \ - WARN("mmap fail " #name); \ + perror("mmap " #name); \ __elf_table(name) = NULL; \ } \ __elf_table(name); \