[ARM] 5559/1: Limit the stack unwinding caused by a kthread exit
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 19 Jun 2009 15:43:08 +0000 (16:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 19 Jun 2009 15:44:23 +0000 (16:44 +0100)
commitfeb97c3644a560ffdf9a17c65b1df807b5b4432f
treed9c84b8ad646cbf43e20c9a96e5db25b4ccd4ec6
parentc894ed6956f126d60d888e8efc5fb3a595ba89ae
[ARM] 5559/1: Limit the stack unwinding caused by a kthread exit

When a kthread function returns, it branches to do_exit(). However, the
unwinding information isn't valid anymore and any stack trace caused by
do_exit() may be incorrect. This patch adds a kernel_thread_exit()
function and annotated with '.cantunwind' so that the unwinder stops
when reaching it.

Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/process.c