From: Chris Wright <chrisw@sous-sol.org>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>,
"H. Peter Anvin" <hpa@zytor.com>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: section mismatches
Date: Tue, 22 May 2007 23:54:58 -0700 [thread overview]
Message-ID: <20070523065458.GH3429@sequoia.sous-sol.org> (raw)
In-Reply-To: <20070523001247.GA3390@sequoia.sous-sol.org>
* Chris Wright (chrisw@sous-sol.org) wrote:
> I tracked down a bunch of these a little while back. It's not really
> iret_exc, but since there is no _sfixup/_efixup markers iret_exc is the
> closest symbol to pick on. All the [iret_exc, _etext] warnings I found
> were completely harmless from things that used, for example, mfn_to_pfn
> in an __init function (which sucks in a fixup via __get_user).
Took a moment to check current -mm allmodconfig as Andrew did.
$ make ARCH=i386 O=obj-mod allmodconfig
$ make -j8 ARCH=i386 O=obj-mod > obj-mod/build.out 2>&1
$ objdump -dr -j.text obj-mod/vmlinux > obj-mod/objdump.out
$ grep iret_exc obj-mod/build.out | sed 's/.*(at offset 0x\(.*\)).*/\1/' | while read addr; do grep -B1 $addr obj-mod/objdump.out; done
c0306935: e9 41 7e 19 00 jmp c049e77b <romsignature+0x1f>
c0306936: R_386_PC32 .init.text
c0306941: e9 83 7e 19 00 jmp c049e7c9 <romchecksum+0x34>
c0306942: R_386_PC32 .init.text
c030694d: e9 8e 85 19 00 jmp c049eee0 <request_standard_resources+0x82>
c030694e: R_386_PC32 .init.text
c0306959: e9 93 86 19 00 jmp c049eff1 <request_standard_resources+0x193>
c030695a: R_386_PC32 .init.text
c0306fd4: e9 bc c6 1a 00 jmp c04b3695 <xenbus_probe_init+0x69>
c0306fd5: R_386_PC32 .init.text
c0307120: e9 2c f3 1a 00 jmp c04b6451 <pci_pcbios_init+0x33>
c0307121: R_386_PC32 .init.text
Each of these is indeed from __get_user called from an __init function.
- romsignature calls __get_user via probe_kernel_address
- romchecksum calls __get_user via probe_kernel_address
- request_standard_resources inlines probe_roms which
twice calls __get_user via probe_kernel_address
- xenbus_probe_init calls __get_user via mfn_to_pfn
- pci_pcbios_init calls __get_user via probe_kernel_address
We could simply hush it up, by forcing that call to be out of line from
the __init function. That's not really robust, since each callsite needs
attention (meaning new ones will sneak in over time). Or fix the linker
script (and possibly modpost.c).
next prev parent reply other threads:[~2007-05-23 6:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 21:52 section mismatches Andrew Morton
2007-05-22 23:15 ` Jeremy Fitzhardinge
2007-05-23 0:12 ` Chris Wright
2007-05-23 6:54 ` Chris Wright [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-31 1:02 Andrew Morton
2007-05-31 4:05 ` Jeremy Fitzhardinge
2007-05-31 4:40 ` Yinghai Lu
2007-05-31 4:52 ` Sam Ravnborg
2007-05-31 4:50 ` Sam Ravnborg
2007-05-31 4:56 ` Andrew Morton
2007-05-31 20:53 ` Sam Ravnborg
2010-08-04 11:11 Section Mismatches Felipe Balbi
2010-08-04 12:26 ` Uwe Kleine-König
2010-08-09 6:08 ` Felipe Balbi
2010-08-09 6:49 ` Uwe Kleine-König
2010-08-09 10:31 ` Felipe Balbi
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=20070523065458.GH3429@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=hpa@zytor.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.