mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@kernel.org>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: Peter Zijlstra <peterz@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: build failure after commit eb0481bbc4ce ("objtool: Fix reloc_hash size")
Date: Wed, 28 Jun 2023 10:05:30 -0700	[thread overview]
Message-ID: <20230628170530.derop5w2gtmgjeis@treble> (raw)
In-Reply-To: <20230628164554.womrvwq7chnjtva4@lion.mk-sys.cz>

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

  reply	other threads:[~2023-06-28 17:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-28 11:58 Michal Kubecek
2023-06-28 15:16 ` Josh Poimboeuf
2023-06-28 15:44   ` Michal Kubecek
2023-06-28 16:06     ` Michal Kubecek
2023-06-28 16:45       ` Michal Kubecek
2023-06-28 17:05         ` Josh Poimboeuf [this message]
2023-06-28 17:26           ` Michal Kubecek
2023-06-28 18:10             ` Josh Poimboeuf
2023-06-28 19:32               ` Peter Zijlstra
2023-07-08 13:40 ` Linux regression tracking (Thorsten Leemhuis)
2023-07-09 14:09   ` Michal Kubecek
2023-07-10 17:16     ` Josh Poimboeuf
2023-07-16 22:56       ` Michal Kubecek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230628170530.derop5w2gtmgjeis@treble \
    --to=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkubecek@suse.cz \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®