Subject: [PATCH 4/4] [RFC] Use generic ARM instruction set condition code checks for kprobes.

From: [email-masked] (Leif Lindholm)
Date: Fri, 25 Nov 2011 13:29:13 +0000

On 11/24/11 19:40, Tixy wrote:
>> Now, disabling the SWP emulation, it still fails - but at least not as
>> an oops this time:
>> <<<
>> FAIL: test memory differs
>> FAIL: Test strd r2, [r3], r4
>> FAIL: Scenario 0
...
>> FATAL: Error inserting test_kprobes
>>
> The kprobes instruction emulation has stored the original value of r3
> into memory, whereas the real instruction has store the updated value of
> r3. Either this instruction form is UNPREDICTABLE, in which case the
> test code should not be trying to test it, otherwise the instruction
> emulation code needs fixing. Either way, a patch is needed. I'll look
> into this.

Yes, this instruction form is UNPREDICTABLE, and some quick experiments 
show that it behaves differently on for example Cortex-A8 and Cortex-A9.

/
     Leif