Re: spinlocks() are severely broken in 2.2.X and 2.4.X for modules

Andi Kleen (ak@suse.de)
Sat, 1 Jul 2000 16:34:34 +0200


On Sat, Jul 01, 2000 at 03:37:07PM +0200, Manfred Spraul wrote:
> Andi Kleen wrote:
> >
> > Here is a quick hack. The results are slightly off because of section
> > padding though. It only works on object files or modules (vmlinux doesn't
> > have any reloc records)
> >
>
> $SPINSIZE = 14;
>
> the .text.lock segment also contains semaphore & rwlock fixups.
> Could you/Jeff send me a broken module?

The only broken module I have is a complete kernel, and it is not broken
in .text.lock but in a custom section there.
It is probably easier to work with nwfs.

>
> If the wrong relocs really point into the wrong segment, then it should
> be easy to find them: the number of relocs from .text into .text.lock
> must be equal to the number of relocs from .text.lock back into .text.

The relocs seem to be missing completely.

-andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/