]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86: Make backtracer fallback logic more bullet-proof
authorJan Beulich <jbeulich@novell.com>
Wed, 30 Aug 2006 17:37:11 +0000 (19:37 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 30 Aug 2006 23:05:15 +0000 (16:05 -0700)
commitfdff82dfe64d8feaf37507d352ce673ec8f27e81
tree228f3bf4f392a8ce45d78a1ea8cfd8bd6f1f4f5b
parent5e68bd1d988019a69f6e1c857042c0db3167ea30
[PATCH] x86: Make backtracer fallback logic more bullet-proof

The unwinder fallback logic still had potential for falling through to
the legacy stack trace code without printing an indication (at once
serving as a separator) of this.

Further, the stack pointer retrieval for the fallback should be as
restrictive as possible (in order to avoid having the legacy stack
tracer try to access invalid memory). The patch tightens that, but
this could certainly be further improved.

Also making the call_trace command line option now conditional upon
CONFIG_STACK_UNWIND (as it's meaningless otherwise).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c
arch/x86_64/kernel/traps.c
include/asm-i386/unwind.h
include/asm-x86_64/unwind.h