diff options
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index 1ac53e9a0859..0a7c812212c9 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -545,14 +545,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
545 | } | 545 | } |
546 | 546 | ||
547 | /* | 547 | /* |
548 | * If TF is set due to a debugger (PT_DTRACE), clear the TF flag so | 548 | * If TF is set due to a debugger (TIF_FORCED_TF), clear the TF |
549 | * that register information in the sigcontext is correct. | 549 | * flag so that register information in the sigcontext is correct. |
550 | */ | 550 | */ |
551 | if (unlikely(regs->eflags & TF_MASK) | 551 | if (unlikely(regs->eflags & X86_EFLAGS_TF) && |
552 | && likely(current->ptrace & PT_DTRACE)) { | 552 | likely(test_and_clear_thread_flag(TIF_FORCED_TF))) |
553 | current->ptrace &= ~PT_DTRACE; | 553 | regs->eflags &= ~X86_EFLAGS_TF; |
554 | regs->eflags &= ~TF_MASK; | ||
555 | } | ||
556 | 554 | ||
557 | /* Set up the stack frame */ | 555 | /* Set up the stack frame */ |
558 | if (ka->sa.sa_flags & SA_SIGINFO) | 556 | if (ka->sa.sa_flags & SA_SIGINFO) |