]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kprobes: Reject probing of LDR/STR instructions which update PC unpredictably
authorJon Medhurst <tixy@yxit.co.uk>
Fri, 8 Apr 2011 14:32:55 +0000 (15:32 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:57 +0000 (23:40 -0400)
commit0fbc09e7d067ade15ad8c85e8e2dfe73f54e2f03
tree17707c238fbb07f26769b974bec731945015696e
parent7e7ceee1f0f7b85c3a84fba6bd6caf5d2233ab1e
ARM: kprobes: Reject probing of LDR/STR instructions which update PC unpredictably

Using PC as an base register with writeback is UNPREDICTABLE, as is non
word-sized loads or stores of PC. (We only really care about preventing
loads to PC but it keeps the code simpler if we also exclude stores.)

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