[FIX] x86: failed to read stack in dbi_disarm_urp_inst
authorAnastasia Lyupa <a.lyupa@samsung.com>
Tue, 30 Apr 2013 14:34:24 +0000 (18:34 +0400)
committerAnastasia Lyupa <a.lyupa@samsung.com>
Tue, 30 Apr 2013 14:34:24 +0000 (18:34 +0400)
commitf80b896266bcc6fae51386206844dc407f3fd939
tree657f1ca47c8a2a69bd9e4ae7d88b599c76a873c4
parent28c75adf1839a860d9a39107579308791038f34f
[FIX] x86: failed to read stack in dbi_disarm_urp_inst

dbi_disarm_urp_inst:
- kprobe_opcode_t -> unsigned long for all address variables involved;

asm-x86: __arch_prepare_kretprobe:
- ri->sp = &regs->EREG(sp); -> ri->sp = regs->EREG(sp);

It let read stack and found trampoline in dbi_disarm_urp_inst.

There are still problems with _start and uClibc probes both on
arm and x86.
kprobe/arch/asm-x86/dbi_kprobes.c
kprobe/dbi_uprobes.c