]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kprobes: Reject probing MRS instructions which read SPSR
authorJon Medhurst <tixy@yxit.co.uk>
Thu, 7 Apr 2011 12:25:15 +0000 (13:25 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:55 +0000 (23:40 -0400)
commit824116f054705d548e6c7c5d9957cafc7b454cfa
tree301e078b5aacee6250c3f89ea03cd5b98a9738d0
parente5e447baddc41ee6bae0de7e724e11fc4e3292fd
ARM: kprobes: Reject probing MRS instructions which read SPSR

We need to reject probing of instructions which read SPSR because
we can't handle this as the value in SPSR is lost when the exception
handler for the probe breakpoint first runs.

This patch also fixes the bitmask for MRS instructions decoding to
include checking bits 5-7.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/kprobes-decode.c