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)
commit54823accfcfc715e9e757a621afb40dabc01d033
tree17707c238fbb07f26769b974bec731945015696e
parent6823fc85fcfba11675f2027aadf2d5291c6f351b
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