* smp_locks reference_discarded errors
@ 2006-03-25 3:40 Dave Jones
2006-03-26 7:50 ` Andrew Morton
0 siblings, 1 reply; 9+ messages in thread
From: Dave Jones @ 2006-03-25 3:40 UTC (permalink / raw)
To: Linux Kernel
since the addition of smp alternatives, the following is occuring..
Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32 .exit.text
Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32 .exit.text
Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32 .exit.text
Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32 .exit.text
Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32 .exit.text
example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-25 3:40 smp_locks reference_discarded errors Dave Jones
@ 2006-03-26 7:50 ` Andrew Morton
2006-03-26 15:40 ` Dave Jones
0 siblings, 1 reply; 9+ messages in thread
From: Andrew Morton @ 2006-03-26 7:50 UTC (permalink / raw)
To: Dave Jones; +Cc: linux-kernel
Dave Jones <davej@redhat.com> wrote:
>
> since the addition of smp alternatives, the following is occuring..
>
> Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32 .exit.text
> Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32 .exit.text
> Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32 .exit.text
> Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32 .exit.text
> Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32 .exit.text
>
> example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config
>
I guess an atomic operation in __exit code will cause that. down() and
atomic_dec_and_test() in two cases.
I suspect most of these callsites are just wrongly coded - it's pretty
unusual for __exit code to really need to lock anything - what is there to
be racing against?
This is emitted by reference_discarded.pl?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-26 7:50 ` Andrew Morton
@ 2006-03-26 15:40 ` Dave Jones
2006-03-26 16:10 ` Sam Ravnborg
0 siblings, 1 reply; 9+ messages in thread
From: Dave Jones @ 2006-03-26 15:40 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Sat, Mar 25, 2006 at 11:50:35PM -0800, Andrew Morton wrote:
> Dave Jones <davej@redhat.com> wrote:
> >
> > since the addition of smp alternatives, the following is occuring..
> >
> > Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32 .exit.text
> > Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32 .exit.text
> > Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32 .exit.text
> > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32 .exit.text
> > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32 .exit.text
> >
> > example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config
> >
>
> I guess an atomic operation in __exit code will cause that. down() and
> atomic_dec_and_test() in two cases.
>
> I suspect most of these callsites are just wrongly coded - it's pretty
> unusual for __exit code to really need to lock anything - what is there to
> be racing against?
>
> This is emitted by reference_discarded.pl?
came out of a 'make buildcheck' a day or two ago (the following day,
Sam nuked reference_discarded.pl in favour of it being done
magically somewhere else (I've not looked into how its done now).
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-26 15:40 ` Dave Jones
@ 2006-03-26 16:10 ` Sam Ravnborg
2006-03-28 0:04 ` Dave Jones
2006-03-31 19:08 ` Adrian Bunk
0 siblings, 2 replies; 9+ messages in thread
From: Sam Ravnborg @ 2006-03-26 16:10 UTC (permalink / raw)
To: Dave Jones, Andrew Morton, linux-kernel
On Sun, Mar 26, 2006 at 10:40:42AM -0500, Dave Jones wrote:
> On Sat, Mar 25, 2006 at 11:50:35PM -0800, Andrew Morton wrote:
> > Dave Jones <davej@redhat.com> wrote:
> > >
> > > since the addition of smp alternatives, the following is occuring..
> > >
> > > Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32 .exit.text
> > > Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32 .exit.text
> > > Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32 .exit.text
> > > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32 .exit.text
> > > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32 .exit.text
> > >
> > > example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config
> > >
> >
> > I guess an atomic operation in __exit code will cause that. down() and
> > atomic_dec_and_test() in two cases.
> >
> > I suspect most of these callsites are just wrongly coded - it's pretty
> > unusual for __exit code to really need to lock anything - what is there to
> > be racing against?
> >
> > This is emitted by reference_discarded.pl?
>
> came out of a 'make buildcheck' a day or two ago (the following day,
> Sam nuked reference_discarded.pl in favour of it being done
> magically somewhere else (I've not looked into how its done now).
The check is part of modpost now. modpost is only used when building
modules but that holds true for most builds anyway therefore I did not
move it to a separate executable.
Also the output from modpost provides a bit more info.
So output from fresh -linus kernel would make it easier to locate the
guilty stuff.
Sam
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-26 16:10 ` Sam Ravnborg
@ 2006-03-28 0:04 ` Dave Jones
2006-03-28 0:09 ` Randy.Dunlap
2006-03-31 19:08 ` Adrian Bunk
1 sibling, 1 reply; 9+ messages in thread
From: Dave Jones @ 2006-03-28 0:04 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Andrew Morton, linux-kernel
On Sun, Mar 26, 2006 at 06:10:55PM +0200, Sam Ravnborg wrote:
> Also the output from modpost provides a bit more info.
> So output from fresh -linus kernel would make it easier to locate the
> guilty stuff.
Finally coaxed latest -git to build on all archs I care about..
grab http://people.redhat.com/davej/buildlog.txt and grep for WARNING:
and see a zillion errors. The smp_locks ones seem to have disappeared
now though.
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-28 0:04 ` Dave Jones
@ 2006-03-28 0:09 ` Randy.Dunlap
0 siblings, 0 replies; 9+ messages in thread
From: Randy.Dunlap @ 2006-03-28 0:09 UTC (permalink / raw)
To: Dave Jones; +Cc: sam, akpm, linux-kernel
On Mon, 27 Mar 2006 19:04:18 -0500 Dave Jones wrote:
> On Sun, Mar 26, 2006 at 06:10:55PM +0200, Sam Ravnborg wrote:
>
> > Also the output from modpost provides a bit more info.
> > So output from fresh -linus kernel would make it easier to locate the
> > guilty stuff.
>
> Finally coaxed latest -git to build on all archs I care about..
> grab http://people.redhat.com/davej/buildlog.txt and grep for WARNING:
> and see a zillion errors. The smp_locks ones seem to have disappeared
> now though.
I just posted a boatload of them to the kernel-janitors m-l also.
---
~Randy
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-26 16:10 ` Sam Ravnborg
2006-03-28 0:04 ` Dave Jones
@ 2006-03-31 19:08 ` Adrian Bunk
2006-03-31 19:33 ` Sam Ravnborg
1 sibling, 1 reply; 9+ messages in thread
From: Adrian Bunk @ 2006-03-31 19:08 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Dave Jones, Andrew Morton, linux-kernel
On Sun, Mar 26, 2006 at 06:10:55PM +0200, Sam Ravnborg wrote:
> On Sun, Mar 26, 2006 at 10:40:42AM -0500, Dave Jones wrote:
> >
> > came out of a 'make buildcheck' a day or two ago (the following day,
> > Sam nuked reference_discarded.pl in favour of it being done
> > magically somewhere else (I've not looked into how its done now).
> The check is part of modpost now. modpost is only used when building
> modules but that holds true for most builds anyway therefore I did not
> move it to a separate executable.
>...
This doesn't sound good.
This means that we have no longer any tool that warns us about e.g.
references from non-__exit code to __exit code [1]?
> Sam
cu
Adrian
[1] __exit, not __{dev,cpu,mem}exit
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-31 19:08 ` Adrian Bunk
@ 2006-03-31 19:33 ` Sam Ravnborg
2006-03-31 23:56 ` Adrian Bunk
0 siblings, 1 reply; 9+ messages in thread
From: Sam Ravnborg @ 2006-03-31 19:33 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Dave Jones, Andrew Morton, linux-kernel
On Fri, Mar 31, 2006 at 09:08:51PM +0200, Adrian Bunk wrote:
> On Sun, Mar 26, 2006 at 06:10:55PM +0200, Sam Ravnborg wrote:
> > On Sun, Mar 26, 2006 at 10:40:42AM -0500, Dave Jones wrote:
> > >
> > > came out of a 'make buildcheck' a day or two ago (the following day,
> > > Sam nuked reference_discarded.pl in favour of it being done
> > > magically somewhere else (I've not looked into how its done now).
> > The check is part of modpost now. modpost is only used when building
> > modules but that holds true for most builds anyway therefore I did not
> > move it to a separate executable.
> >...
>
> This doesn't sound good.
>
> This means that we have no longer any tool that warns us about e.g.
> references from non-__exit code to __exit code [1]?
> [1] __exit, not __{dev,cpu,mem}exit
It does warn for this also. The test I have carried out has mostly been
on allmodconfig builds though. I assume you are worried for the case
when a module is built-in and the __exit section is discarded - or?
Sam
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: smp_locks reference_discarded errors
2006-03-31 19:33 ` Sam Ravnborg
@ 2006-03-31 23:56 ` Adrian Bunk
0 siblings, 0 replies; 9+ messages in thread
From: Adrian Bunk @ 2006-03-31 23:56 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Dave Jones, Andrew Morton, linux-kernel
On Fri, Mar 31, 2006 at 09:33:38PM +0200, Sam Ravnborg wrote:
> On Fri, Mar 31, 2006 at 09:08:51PM +0200, Adrian Bunk wrote:
> > On Sun, Mar 26, 2006 at 06:10:55PM +0200, Sam Ravnborg wrote:
> > > On Sun, Mar 26, 2006 at 10:40:42AM -0500, Dave Jones wrote:
> > > >
> > > > came out of a 'make buildcheck' a day or two ago (the following day,
> > > > Sam nuked reference_discarded.pl in favour of it being done
> > > > magically somewhere else (I've not looked into how its done now).
> > > The check is part of modpost now. modpost is only used when building
> > > modules but that holds true for most builds anyway therefore I did not
> > > move it to a separate executable.
> > >...
> >
> > This doesn't sound good.
> >
> > This means that we have no longer any tool that warns us about e.g.
> > references from non-__exit code to __exit code [1]?
> > [1] __exit, not __{dev,cpu,mem}exit
>
> It does warn for this also. The test I have carried out has mostly been
> on allmodconfig builds though. I assume you are worried for the case
> when a module is built-in and the __exit section is discarded - or?
Exactly - especially since in kernel 2.6 we are getting on architectures
like i386 no longer link errors as we did in kernel 2.4.
Perhaps I'm only concerned because my usual builds didn't produce a
single warning... ;-)
> Sam
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-03-31 23:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-25 3:40 smp_locks reference_discarded errors Dave Jones
2006-03-26 7:50 ` Andrew Morton
2006-03-26 15:40 ` Dave Jones
2006-03-26 16:10 ` Sam Ravnborg
2006-03-28 0:04 ` Dave Jones
2006-03-28 0:09 ` Randy.Dunlap
2006-03-31 19:08 ` Adrian Bunk
2006-03-31 19:33 ` Sam Ravnborg
2006-03-31 23:56 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox