From: Jon Medhurst (Tixy) Date: Tue, 29 Nov 2011 07:16:02 +0000 (+0100) Subject: ARM: 7181/1: Restrict kprobes probing SWP instructions to ARMv5 and below X-Git-Tag: v3.2-rc4~2^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5bed7fe801d1460424b7aeb6b06464e23d2a1e6;p=pandora-kernel.git ARM: 7181/1: Restrict kprobes probing SWP instructions to ARMv5 and below 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. Reported-by: Leif Lindholm Tested-by: Leif Lindholm Acked-by: Nicolas Pitre Signed-off-by: Jon Medhurst Signed-off-by: Russell King --- Reading git-diff-tree failed