]> err.no Git - linux-2.6/commit
[PATCH] x86: Terminate the kernel stacks for the unwinder
authorAndi Kleen <ak@suse.de>
Thu, 5 Oct 2006 16:47:22 +0000 (18:47 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Thu, 5 Oct 2006 16:47:22 +0000 (18:47 +0200)
commit51ec28e1b2cb267a09a0b8eac1ccf8d61b7268bf
tree4686d439a49b98b98fc5048641ddfb50db3fbcd6
parentf015c6c4d733f68cbc1c5d231bb158abaa5c9606
[PATCH] x86: Terminate the kernel stacks for the unwinder

Always make sure RIP/EIP is 0 in the registers stored on the top
of the stack of a kernel thread. This makes sure the unwinder code
won't try a fallback but knows the stack has ended.

AK: this patch is a bit mysterious. in theory they should be terminated
anyways, but it seems to fix at least one crash. Anyways double termination
probably doesn't hurt.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/process.c
arch/x86_64/kernel/entry.S