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

Andi Kleen (ak@suse.de)
Sat, 1 Jul 2000 11:22:27 +0200


On Sat, Jul 01, 2000 at 09:58:10AM +0200, Manfred Spraul wrote:
> Is only the spinlock code affected, or every user of
>
> .text.somewhere_else
>
> segments? Arjan had deadlocks with the mmap_sem semaphore, and they only
> appeared with his gcc/binutils combination.
>
> Is the problem restricted to modules, or does it happen with
> non-modularized code?

I had it happen to me in the past too for my sysctl rewrite. In this
case it happened in the main kernel for a .sysctl -> .data relocation.
It happened in the main vmlinux. It seems to require some complex
input to trigger (it is not as simple as intersegment relocation does not
work). In my case I had a few hundred relocations and one was wrong
and caused crashes.

binutils was 2.9.1.0.23 (hj lu version)

-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/