]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes/x86: Change __skip_sstep() to actually skip the whole insn
authorOleg Nesterov <oleg@redhat.com>
Sun, 30 Dec 2012 14:21:22 +0000 (15:21 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:11 +0000 (17:47 +0100)
commitaca00d6da51a8036ffed0466f72245fe7049fca6
treec2cc4c968fdd9fa0c02fb0c6f4f452a826947df4
parent1762d482de56af7db6327e0a31ec46344edcb427
uprobes/x86: Change __skip_sstep() to actually skip the whole insn

__skip_sstep() doesn't update regs->ip. Currently this is correct
but only "by accident" and it doesn't skip the whole insn. Change
it to advance ->ip by the length of the detected 0x66*0x90 sequence.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
arch/x86/kernel/uprobes.c