]> err.no Git - linux-2.6/commit
[PATCH] i386: don't blindly enable interrupts in die()
authorJan Beulich <jbeulich@novell.com>
Fri, 6 Jan 2006 08:11:48 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:34 +0000 (08:33 -0800)
commite43d674f44dc885a2476cab3537e639d9eaa31a9
tree23bf53cc0752000ddee91b8f957181bfc5b70a4c
parent7c4cb60e5b97677424e95baee9c29df54b26e6ba
[PATCH] i386: don't blindly enable interrupts in die()

Rather than blindly re-enabling interrupts in die(), save their state
upon entry and then restore that state.

If the kernel is in really bad condition and faults with interrupts disabled,
re-enabling them in die() may cause even more trouble, implying more chances
of data corruption.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c