[FIX] commit ee8b8e5ddc
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 25 Jul 2013 08:47:16 +0000 (12:47 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 25 Jul 2013 08:47:16 +0000 (12:47 +0400)
kprobe/arch/asm-x86/dbi_kprobes.c

index 45a5a5e..f1886b3 100644 (file)
@@ -172,8 +172,8 @@ static __used void kretprobe_trampoline_holder(void)
                        "       popl %edi\n"
                        "       popl %ebp\n"
                        "       popl %eax\n"
-                       /* skip eip, orig_eax, es, ds, fs */
-                       "       addl $20, %esp\n"
+                       /* skip ds, es, fs, gs, orig_ax, and ip. Note: don't pop cs here*/
+                       "       addl $24, %esp\n"
                        "       popf\n"
                        "       ret\n");
 }