diff options
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r-- | arch/x86_64/kernel/kprobes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/kprobes.c b/arch/x86_64/kernel/kprobes.c index 2d7658fbbb28..df08c43276a0 100644 --- a/arch/x86_64/kernel/kprobes.c +++ b/arch/x86_64/kernel/kprobes.c | |||
@@ -311,7 +311,8 @@ int __kprobes kprobe_handler(struct pt_regs *regs) | |||
311 | Disarm the probe we just hit, and ignore it. */ | 311 | Disarm the probe we just hit, and ignore it. */ |
312 | p = get_kprobe(addr); | 312 | p = get_kprobe(addr); |
313 | if (p) { | 313 | if (p) { |
314 | if (kprobe_status == KPROBE_HIT_SS) { | 314 | if (kprobe_status == KPROBE_HIT_SS && |
315 | *p->ainsn.insn == BREAKPOINT_INSTRUCTION) { | ||
315 | regs->eflags &= ~TF_MASK; | 316 | regs->eflags &= ~TF_MASK; |
316 | regs->eflags |= kprobe_saved_rflags; | 317 | regs->eflags |= kprobe_saved_rflags; |
317 | unlock_kprobes(); | 318 | unlock_kprobes(); |