[PATCH] ARM: kprobes: Change testcase with unpredictable STRD instruction
tixy at yxit.co.uk
Thu Dec 1 02:33:22 EST 2011
On Wed, 2011-11-30 at 23:56 +0000, Russell King - ARM Linux wrote:
> 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?
No, the test code is new in 3.2
More information about the linux-arm-kernel