]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kprobes: Reject probing of undefined data processing instructions
authorJon Medhurst <tixy@yxit.co.uk>
Tue, 19 Apr 2011 09:52:16 +0000 (10:52 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:59 +0000 (23:40 -0400)
commit53387de9ccdcbd90a8a92f4456d604d61ef76f56
treedc571d149ae5a78c9adf667cf512438615470ebe
parentdbba8205c45842029291843e5074d3cba96574a7
ARM: kprobes: Reject probing of undefined data processing instructions

The instruction decoding in space_cccc_000x needs to reject probing of
instructions with undefined patterns as they may in future become
defined and then emulated faultily - as has already happened with the
SMC instruction.

This fix is achieved by testing for the instruction patterns we want to
probe and making the the default fall-through paths reject probes. This
also allows us to remove some explicit tests for instructions that we
wish to reject, as that is now the default action.

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