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

Leif Lindholm leif.lindholm at arm.com
Fri Nov 25 08:29:13 EST 2011


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




More information about the linux-arm-kernel mailing list