]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29096674d09ba8dfa6daed461b26e57aeaf923ae
tree1444ed14ef7afb312cff32161dacb07bcb3f7f2d
parent8f255133ab52da18a3f2e0925c3b959e29499b77
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