From: Oleg Nesterov Date: Sat, 5 Apr 2014 19:06:10 +0000 (+0200) Subject: uprobes/x86: Emulate nop's using ops->emulate() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~40^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d241006354c550c7d22f304e2fdf90137fb8eaab;p=pandora-kernel.git uprobes/x86: Emulate nop's using ops->emulate() Finally we can kill the ugly (and very limited) code in __skip_sstep(). Just change branch_setup_xol_ops() to treat "nop" as jmp to the next insn. Thanks to lib/insn.c, it is clever enough. OPCODE1() == 0x90 includes "(rep;)+ nop;" at least, and (afaics) much more. Signed-off-by: Oleg Nesterov Reviewed-by: Jim Keniston --- Reading git-diff-tree failed