diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-06-19 16:42:11 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-19 16:44:22 +0100 |
commit | c894ed6956f126d60d888e8efc5fb3a595ba89ae (patch) | |
tree | 9c84511dee1084d9ee15a5e667289017e182010d /arch/powerpc/configs/chrp32_defconfig | |
parent | 7436127ce9042f95a10bb5423f726fd63a61934d (diff) |
[ARM] 5558/1: Add extra checks to ARM unwinder to avoid tracing corrupt stacks
There are situations where the unwinder goes beyond stack boundaries and
unwinds random data. This patch moves the stack boundaries check after
the unwind_exec_insn() call and adds an extra check for possible
infinite loops (like "mov pc, lr" with pc == lr).
The patch also fixes a bug in the unwind instructions interpreter. The
0xb0 instruction can only set PC to LR if this wasn't already set by
a previous instruction (this is used on exceptions taken while in kernel
mode where svc_entry is annotated with ".save {r0 - pc}").
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>
Diffstat (limited to 'arch/powerpc/configs/chrp32_defconfig')
0 files changed, 0 insertions, 0 deletions