]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7987/1: ARM : unwinder : Prevent data abort due to stack overflow
authorAnurag Aggarwal <a.anurag@samsung.com>
Mon, 24 Feb 2014 10:17:36 +0000 (11:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Feb 2014 11:48:24 +0000 (11:48 +0000)
commit5659b3aaf40cde75ae2e24301951a3323323e8a5
tree94b29eee74c40959705274948ad87c90de4797e4
parent3ff3f2447c1a0ec923c96d2773b45dcd0ab35d01
ARM: 7987/1: ARM : unwinder : Prevent data abort due to stack overflow

While unwinding backtrace, stack overflow is possible. This stack
overflow can sometimes lead to data abort in system if the area after
stack is not mapped to physical memory.

To prevent this problem from happening, execute the instructions that
can cause a data abort in separate helper functions, where a check for
feasibility is made before reading each word from the stack.

Signed-off-by: Anurag Aggarwal <a.anurag@samsung.com>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/unwind.c