From: Oleg Nesterov Date: Sat, 29 Sep 2012 19:31:08 +0000 (+0200) Subject: uprobes/x86: Only rep+nop can be emulated correctly X-Git-Tag: v3.7-rc3~40^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64b9c937a533f0bfbfc9f6ac93d3c3e2f97ab02;p=pandora-kernel.git uprobes/x86: Only rep+nop can be emulated correctly __skip_sstep() correctly detects the "nontrivial" nop insns, but since it doesn't update regs->ip we can not really skip "0x0f 0x1f | 0x0f 0x19 | 0x87 0xc0", the probed application is killed by SIGILL'ed handle_swbp(). Remove these additional checks. If we want to implement this correctly we need to know the full insn length to update ->ip. rep* + nop is fine even without updating ->ip. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed