Chuck Ebbert 3dab307e52 i386: Fix double fault handler
The new percpu code has apparently broken the doublefault handler
when CONFIG_DEBUG_SPINLOCK is set. Doublefault is handled by
a hardware task, making the check

        SPIN_BUG_ON(lock->owner == current, lock, "recursion");

fault because it uses the FS register to access the percpu data
for current, and that register is zero in the new TSS. (The trace
I saw was on 2.6.20 where it was GS, but it looks like this will
still happen with FS on 2.6.22.)

Initializing FS in the doublefault_tss should fix it.

AK: Also fix broken ptr_ok() and turn printks into KERN_EMERG
AK: And add a PANIC prefix to make clear the system will hang
AK: (e.g. x86-64 will recover)

Signed-off-by: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-08-11 15:58:14 -07:00
..
2007-07-29 16:53:59 -07:00
2007-07-19 10:04:52 -07:00
2007-08-11 15:58:14 -07:00
2005-04-16 15:20:36 -07:00
2007-07-18 12:09:01 -07:00
2007-08-11 15:58:14 -07:00
2007-07-21 18:37:14 -07:00
2007-07-29 17:09:29 -07:00
2006-12-08 08:28:39 -08:00
2007-06-20 14:27:25 -07:00
2007-07-29 16:53:59 -07:00
2007-07-22 11:03:37 -07:00
2007-07-18 08:47:41 -07:00
2005-04-16 15:20:36 -07:00
2007-07-29 17:09:29 -07:00
2007-07-29 17:09:29 -07:00
2007-07-19 10:04:52 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00