[PATCH] ARM: kprobes: Restrict probing SWP instructions to ARMv5 and below

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Nov 30 18:56:18 EST 2011


On Sun, Nov 27, 2011 at 12:14:40PM +0000, Tixy wrote:
> The SWP instruction is deprecated on ARMv6 and with ARMv7 it will be
> UNDEFINED when CONFIG_SWP_EMULATE is selected. In this case, probing a
> SWP instruction will cause an oops when the kprobes emulation code
> executes an undefined instruction.
> 
> As the SWP instruction should be rare or non-existent in kernels for
> ARMv6 and later, we can simply avoid these problems by not allowing
> probing of these.

Is this something for -stable stuff?



More information about the linux-arm-kernel mailing list