]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM kprobes: don't let a single-stepped stmdb corrupt the exception stack
authorNicolas Pitre <nico@cam.org>
Fri, 14 Dec 2007 20:56:01 +0000 (15:56 -0500)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:25:17 +0000 (15:25 +0000)
If kprobes installs a breakpoint on a "stmdb sp!, {...}" instruction,
and then single-step it by simulation from the exception context, it will
corrupt the saved regs on the stack from the previous context.

To avoid this, let's add an optional parameter to the svc_entry macro
allowing for a hole to be created on the stack before saving the
interrupted context, and use it in the undef_svc handler when kprobes
is enabled.

Signed-off-by: Nicolas Pitre <nico@marvell.com>

No differences found