From: "Jan Beulich" <JBeulich@suse.com>
To: "Linus Torvalds" <torvalds@linux-foundation.org>
Cc: "Nick Bowler" <nbowler@elliptictech.com>,
"Arnaud Lacombe" <lacombar@gmail.com>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Michal Marek" <mmarek@suse.cz>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: "Inconsistent kallsyms data" error
Date: Fri, 06 Jul 2012 08:25:43 +0100 [thread overview]
Message-ID: <4FF6AF17020000780008DFA9@nat28.tlf.novell.com> (raw)
In-Reply-To: <CA+55aFyr+gexQW9Gmg=_V145SUeKOcfSNUx5h4p7bgjMp=07Og@mail.gmail.com>
>>> On 05.07.12 at 23:18, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> Anyway, after hacking the source to actually show the difference, and
> to also *not* change the version string just becuse it's dirty, I see
> this difference:
>
> - System.map:
>
> ...
> ffffffff8189b4d0 R kallsyms_addresses
> ffffffff818ee910 R kallsyms_num_syms
> ffffffff818ee918 R kallsyms_names
> ...
> ffffffff819fa9a0 R __stop___modver
> ffffffff819fb000 R __end_rodata
> ...
>
> - .tmp_System.map:
>
> ...
> ffffffff8189b4d0 R kallsyms_addresses
> ffffffff818ee850 R kallsyms_num_syms
> ffffffff818ee858 R kallsyms_names
> ...
> ffffffff819fa720 R __stop___modver
> ffffffff819fb000 R __end_rodata
>
> (the diff itself is huge, because once the addresses change, they stay
> different).
>
> Notice how 'kallsyms_addresses' has the same value, but
> 'kallsyms_num_syms' (and subsequent symbols until the page-aligned
> __end_rodata symbol that gets them back in sync) do not. I have no
> idea *why* this happens, but it definitely does.
>
> It seems the real difference is the size of the "kallsyms_addresses"
> data structure. No idea why, though.
Since it's clearly not an alignment problem, it almost certainly
means there were symbols added in the second pass, when
none were expected to be added.
> This happens with current git (commit c4aed353b1b0), on an x86-64
> machine running current F17 as of today, with the attached config.
> Maybe that makes somebody else able to recreate this and figure out
> what is so magical about the layout that the exact kernel version and
> config (and likely compiler/binutils versions) matter.
>
> Any ideas? Added a fairly random set of people who get mentioned in
> the linker script commits etc.
I would have asked you to tar up all files in the build tree root
(if you still have them, ideally including the ones you saved from
deletion; quite possibly other object files in the tree might
subsequently need looking at too, so just taking the full tree
would probably be best), but since I'll be on vacation for two
weeks starting this evening that would probably not be of much
immediate help.
In the unlikely event that the problem remains unsolved till then,
I would still offer to take a look, not the least because the mere
presence of the KALLSYMS_EXTRA_PASS workaround always
puzzled me. (With reproduction unfortunately being so fragile,
I'm having not much hope to be able to recreate the issue
myself.)
Jan
next prev parent reply other threads:[~2012-07-06 7:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 21:18 Linus Torvalds
2012-07-06 7:25 ` Jan Beulich [this message]
2012-07-06 11:17 ` Paulo Marques
2012-07-07 4:48 ` Paul Gortmaker
2012-07-15 21:58 ` Domenico Andreoli
2012-07-07 21:40 ` Michal Marek
2012-08-10 0:02 ` Jan Engelhardt
2012-08-10 9:59 ` Michal Marek
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=4FF6AF17020000780008DFA9@nat28.tlf.novell.com \
--to=jbeulich@suse.com \
--cc=lacombar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=nbowler@elliptictech.com \
--cc=sam@ravnborg.org \
--cc=torvalds@linux-foundation.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®