ARM: kprobes: Reject probing of all coprocessor instructions
authorJon Medhurst <tixy@yxit.co.uk>
Mon, 18 Apr 2011 07:53:54 +0000 (08:53 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:58 +0000 (23:40 -0400)
commitfa1a03b429b3fd5f28e7fdd20ce99ca572bfd236
tree3b69ca654478557d3b6432e2e0a44095628e70f8
parentc6e4ae32911c2a0ad02d47ee59ccba352a74c38e
ARM: kprobes: Reject probing of all coprocessor instructions

The kernel doesn't currently support VFP or Neon code, and probing of
code with CP15 operations is fraught with bad consequences. Therefore we
don't need the ability to probe coprocessor instructions and the code to
support this can be removed.

The removed code also had at least two bugs:
 - MRC into R15 should set CPSR not trash PC
 - LDC and STC which use PC as base register needed the address offset by 8

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