ARM: kprobes: Disallow instructions with PC and register specified shift
authorJon Medhurst <tixy@linaro.org>
Mon, 3 Mar 2014 15:08:30 +0000 (15:08 +0000)
committerJon Medhurst <tixy@linaro.org>
Wed, 2 Jul 2014 11:48:36 +0000 (12:48 +0100)
commit272226007f436eff953c4398c1f5509cb74889ac
tree1444ed14ef7afb312cff32161dacb07bcb3f7f2d
parent48f7bc86b6e75bcb71441c77378c1cde6ecbe475
ARM: kprobes: Disallow instructions with PC and register specified shift

ARM data processing instructions which have a register specified shift
are defined as UNPREDICTABLE if PC is used for any register, not just
the shift value as the code was previous assuming. This issue manifests
on A15 devices as either test case failures or undefined instructions
aborts.

Reported-by: David Long <dave.long@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
arch/arm/kernel/kprobes-test-arm.c
arch/arm/kernel/probes-arm.c