]> 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)
commit2e695ed006262140db11f6dedb9f5b764802a28f
tree1444ed14ef7afb312cff32161dacb07bcb3f7f2d
parentec48fcc0012a9760107784755711015e39d33b4d
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