From d1f90631f832914eaae43b8b4288ec5df4fcef80 Mon Sep 17 00:00:00 2001 From: Vasiliy Ulyanov Date: Fri, 11 Apr 2014 18:34:19 +0400 Subject: [PATCH] [FIX] 'repz ret' instruction instrumentation Change-Id: I721716e5d45df9fe166cd4be4464081b31cf8932 Signed-off-by: Vasiliy Ulyanov --- uprobe/arch/asm-x86/swap_uprobes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uprobe/arch/asm-x86/swap_uprobes.c b/uprobe/arch/asm-x86/swap_uprobes.c index 2ec59ac..750f32d 100644 --- a/uprobe/arch/asm-x86/swap_uprobes.c +++ b/uprobe/arch/asm-x86/swap_uprobes.c @@ -255,6 +255,11 @@ static void resume_execution(struct kprobe *p, struct pt_regs *regs, unsigned lo p->ainsn.boostable = 1; goto no_change; } + case 0xf3: + if (insns[1] == 0xc3) + /* repz ret special handling: no more changes */ + goto no_change; + break; default: break; } -- 2.7.4