diff options
-rw-r--r-- | arch/x86/kernel/traps_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 2c7ea3827713..67953bbe193d 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -477,14 +477,15 @@ dotraplinkage void __kprobes do_int3(struct pt_regs *regs, long error_code) | |||
477 | if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP) | 477 | if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP) |
478 | == NOTIFY_STOP) | 478 | == NOTIFY_STOP) |
479 | return; | 479 | return; |
480 | conditional_sti(regs); | ||
481 | #else | 480 | #else |
482 | if (notify_die(DIE_TRAP, "int3", regs, error_code, 3, SIGTRAP) | 481 | if (notify_die(DIE_TRAP, "int3", regs, error_code, 3, SIGTRAP) |
483 | == NOTIFY_STOP) | 482 | == NOTIFY_STOP) |
484 | return; | 483 | return; |
485 | #endif | 484 | #endif |
486 | 485 | ||
486 | preempt_conditional_sti(regs); | ||
487 | do_trap(3, SIGTRAP, "int3", regs, error_code, NULL); | 487 | do_trap(3, SIGTRAP, "int3", regs, error_code, NULL); |
488 | preempt_conditional_cli(regs); | ||
488 | } | 489 | } |
489 | 490 | ||
490 | /* | 491 | /* |