[PATCH] ARM: kprobes: Change testcase with unpredictable STRD instruction

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Nov 30 18:56:44 EST 2011


On Sun, Nov 27, 2011 at 12:11:25PM +0000, Tixy wrote:
> There is a kprobes testcase for the instruction "strd r2, [r3], r4".
> This has unpredictable behaviour as it uses r3 for register writeback
> addressing and also stores it to memory.
> 
> On a cortex A9, this testcase would fail because the instruction writes
> the updated value of r3 to memory, whereas the kprobes emulation code
> writes the original value.
> 
> Fix this by changing testcase to used r5 instead of r3.

Is this a -stable candidate?



More information about the linux-arm-kernel mailing list