x86: be even more careful about checking the stack frame on dumping
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 1 Sep 2007 03:18:51 +0000 (20:18 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 1 Sep 2007 03:18:51 +0000 (20:18 -0700)
commit36ad4885c47c2187822f2783fb46fde2d36bf200
tree3cdc924a89a6624e685ef1b3926ecab8c54ffaf5
parent3b2b64fd311c92f2137eb7cee7025794cd854057
x86: be even more careful about checking the stack frame on dumping

lguest didn't initialize the kernel stack the way a real i386 kernel
does, and ended up triggering a corner-case in the stack frame checking
that doesn't happen on naive i386, and that the stack dumping didn't
handle quite right.

This makes the frame handling more correct, and tries to clarify the
code at the same time so that it's a bit more obvious what is going on.

Thanks to Rusty Russell for debugging the lguest failure-

Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/traps.c