]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit51468ea91efad9c7e6dbae43cd8bdc423ec61709
tree301e078b5aacee6250c3f89ea03cd5b98a9738d0
parent896a74e19d0131413a96502429994bc8e6bbbe5a
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