]> git.baikalelectronics.ru Git - kernel.git/commit
um: Make stack trace reliable against kernel mode faults
authorRichard Weinberger <richard@nod.at>
Mon, 23 Sep 2013 15:38:02 +0000 (17:38 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Nov 2013 10:27:30 +0000 (11:27 +0100)
commit1b2f8b5f1c1c1c3b9d45a23ab9244605828d2b5f
tree0e3051e2d357548d086a2ac00c4bfe201fe4e31d
parent9eb0ad26ac84922d454105e8b9b94fad80589eb2
um: Make stack trace reliable against kernel mode faults

As UML uses an alternative signal stack we cannot use
the current stack pointer for stack dumping if UML itself
dies by SIGSEGV. To bypass this issue we save regs taken
from mcontext in our segv handler into thread_struct and
use these regs to obtain the stack pointer in show_stack().

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/processor-generic.h
arch/um/include/shared/os.h
arch/um/kernel/sysrq.c
arch/um/kernel/trap.c
arch/um/os-Linux/signal.c