[FIX] Ticket #9
authorAlexander Aksenov <a.aksenov@samsung.com>
Fri, 19 Jul 2013 12:27:37 +0000 (16:27 +0400)
committerAlexander Aksenov <a.aksenov@samsung.com>
Fri, 19 Jul 2013 12:27:37 +0000 (16:27 +0400)
Issue refers only to x86 platform.
In kprobe_handler() now prepare_singlestep() done even if pre_handler
returns non-null value (according to sources it occures nearly always).
It removes interrupt flag and sets trap flag.

kprobe/arch/asm-x86/dbi_kprobes.c

index faf41ef..123cb53 100644 (file)
@@ -527,6 +527,7 @@ int kprobe_handler (struct pt_regs *regs)
                oops_in_progress = swap_oops_in_progress;
 #endif
                /* handler has already set things up, so skip ss setup */
+               prepare_singlestep(p, regs);
                return 1;
        }
        DBPRINTF ("p->pre_handler[] 0");