Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19499407rwd; Wed, 28 Jun 2023 10:04:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7feTFoYXsQGtRHuEf686SrbaxjV7VsAI0HseIbTipyZqaQ046uQ3ddCpYtTU/60t7HsT7z X-Received: by 2002:a05:6a00:1248:b0:67f:3dcd:bc00 with SMTP id u8-20020a056a00124800b0067f3dcdbc00mr4953954pfi.2.1687971867242; Wed, 28 Jun 2023 10:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687971867; cv=none; d=google.com; s=arc-20160816; b=qSWpWItNG/TD4LkfThB17r6UwibZKwJyeqv4Oi6wEuRREZkfLIGgTM627/yOjqrk6p pWffcVAr+emO8QjBCps3FQqpsjkqmmQL6FNkBTnjZ7i0UMKihWLHfSmRx2HFnjmosL3t HTnhZuj0oQYDBxMPO5P4aRaoSbMwbe4ds6c7JRnh3Ps01zMCR30NBBcSFaHR7VrMzOJK zB6bS/76sWxCGGnZ5b+Gc+FyhNWBzumrL/qnzgz1MqWeN4suHSTO4d3FMsKN6rTgFPDM w/BX3kMnYJ/5IcVhTYtSDLVlIIPIz8JLg0wZDSYF9w8Xc1q6IZizgLtdX10Ayibj+k0M x2Sw== 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 :dkim-signature; bh=UHUGho7/Y5/5aYN0Kp0tNdcyjj8Xk/D+mqY5gIusWj4=; fh=er1TB5AkscypdB9AxVakSZpGHvRtaoFUyQQUe1IRb+c=; b=FcpeublsqLcAZjY6W4PKNQX+TBMRNBwhnohhWYogqmIyoKW1eKlAArioF1T6NBteYA +HYKWo1m8QK11mMlHzAqMOrRAncZiyjy9WlG2rDgZtRWSHBUA1/OnhJ9QHwhHeqyRFo4 oMp/DJpRvD1LbhfXQR2kduq84WKTiyGQCYhUCW9v9yhQ8MmmPPZw+dT8nyRSaIdbfajb +wspC/9+mDppJA4s+91dsenhbfUbqmv1TFCTxduG3zByGjWvgMMTFmws5YbBkyUUv+GK M2zcSvUrOnrfjuwTaMbavX0MlG3bF4cVmwBuqZevvmVD8Py9TJHkQ72SuHQD+JnlQ9dT zOsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xAsUzyb4; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 m21-20020a056a00081500b0067f9d269213si2360534pfk.171.2023.06.28.10.04.00; Wed, 28 Jun 2023 10:04:27 -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=@suse.cz header.s=susede2_rsa header.b=xAsUzyb4; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S231439AbjF1QqB (ORCPT + 99 others); Wed, 28 Jun 2023 12:46:01 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:34286 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231597AbjF1Qpz (ORCPT ); Wed, 28 Jun 2023 12:45:55 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 5A8E521855; Wed, 28 Jun 2023 16:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1687970754; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UHUGho7/Y5/5aYN0Kp0tNdcyjj8Xk/D+mqY5gIusWj4=; b=xAsUzyb4K7ZwBBC50Bl06X+PuMsCowkJljK1DwD6bYQ6J9MedO1zUAZg316abHY+GrE0DZ Dr2DJ9rbQYNxMhzLQfdKMnNtUBrFamsM+epLynbDTFRbflkhnex8z03TzFHSvSlsSEIlU/ wd6RlhznyJcMi5IHONgqZuUSrY5a1KY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1687970754; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UHUGho7/Y5/5aYN0Kp0tNdcyjj8Xk/D+mqY5gIusWj4=; b=jAcEphK8qLgI0qsZhVZ9ZdseRHoAeSA22UkHeVa5CMvujk51yfduq41D3UfOLmgOUqNdGz YkPm+MYFFyq7MMDA== Received: from lion.mk-sys.cz (unknown [10.163.44.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 474672C142; Wed, 28 Jun 2023 16:45:54 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id 2E45D608BE; Wed, 28 Jun 2023 18:45:54 +0200 (CEST) Date: Wed, 28 Jun 2023 18:45:54 +0200 From: Michal Kubecek To: Josh Poimboeuf Cc: Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: build failure after commit eb0481bbc4ce ("objtool: Fix reloc_hash size") Message-ID: <20230628164554.womrvwq7chnjtva4@lion.mk-sys.cz> References: <20230628115825.ahqejf5y4hgxhyqj@lion.mk-sys.cz> <20230628151654.zqwy5zsc2cymqghr@treble> <20230628154432.4drtq4pivlkkg6v2@lion.mk-sys.cz> <20230628160631.ryt4icjeck627efs@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230628160631.ryt4icjeck627efs@lion.mk-sys.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Michal