diff options
| -rw-r--r-- | arch/x86/ia32/ia32_signal.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/signal_32.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/signal_64.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index 1c0503bdfb1a..5e7771a3ba2f 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
| @@ -500,7 +500,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka, | |||
| 500 | regs->ss = __USER32_DS; | 500 | regs->ss = __USER32_DS; |
| 501 | 501 | ||
| 502 | set_fs(USER_DS); | 502 | set_fs(USER_DS); |
| 503 | regs->flags &= ~X86_EFLAGS_TF; | 503 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
| 504 | if (test_thread_flag(TIF_SINGLESTEP)) | 504 | if (test_thread_flag(TIF_SINGLESTEP)) |
| 505 | ptrace_notify(SIGTRAP); | 505 | ptrace_notify(SIGTRAP); |
| 506 | 506 | ||
| @@ -600,7 +600,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 600 | regs->ss = __USER32_DS; | 600 | regs->ss = __USER32_DS; |
| 601 | 601 | ||
| 602 | set_fs(USER_DS); | 602 | set_fs(USER_DS); |
| 603 | regs->flags &= ~X86_EFLAGS_TF; | 603 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
| 604 | if (test_thread_flag(TIF_SINGLESTEP)) | 604 | if (test_thread_flag(TIF_SINGLESTEP)) |
| 605 | ptrace_notify(SIGTRAP); | 605 | ptrace_notify(SIGTRAP); |
| 606 | 606 | ||
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index caee1f002fed..0157a6f0f41f 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
| @@ -407,7 +407,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, | |||
| 407 | * The tracer may want to single-step inside the | 407 | * The tracer may want to single-step inside the |
| 408 | * handler too. | 408 | * handler too. |
| 409 | */ | 409 | */ |
| 410 | regs->flags &= ~TF_MASK; | 410 | regs->flags &= ~(TF_MASK | X86_EFLAGS_DF); |
| 411 | if (test_thread_flag(TIF_SINGLESTEP)) | 411 | if (test_thread_flag(TIF_SINGLESTEP)) |
| 412 | ptrace_notify(SIGTRAP); | 412 | ptrace_notify(SIGTRAP); |
| 413 | 413 | ||
| @@ -500,7 +500,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 500 | * The tracer may want to single-step inside the | 500 | * The tracer may want to single-step inside the |
| 501 | * handler too. | 501 | * handler too. |
| 502 | */ | 502 | */ |
| 503 | regs->flags &= ~TF_MASK; | 503 | regs->flags &= ~(TF_MASK | X86_EFLAGS_DF); |
| 504 | if (test_thread_flag(TIF_SINGLESTEP)) | 504 | if (test_thread_flag(TIF_SINGLESTEP)) |
| 505 | ptrace_notify(SIGTRAP); | 505 | ptrace_notify(SIGTRAP); |
| 506 | 506 | ||
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c index 7347bb14e306..56b72fb67f9b 100644 --- a/arch/x86/kernel/signal_64.c +++ b/arch/x86/kernel/signal_64.c | |||
| @@ -295,7 +295,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
| 295 | see include/asm-x86_64/uaccess.h for details. */ | 295 | see include/asm-x86_64/uaccess.h for details. */ |
| 296 | set_fs(USER_DS); | 296 | set_fs(USER_DS); |
| 297 | 297 | ||
| 298 | regs->flags &= ~X86_EFLAGS_TF; | 298 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
| 299 | if (test_thread_flag(TIF_SINGLESTEP)) | 299 | if (test_thread_flag(TIF_SINGLESTEP)) |
| 300 | ptrace_notify(SIGTRAP); | 300 | ptrace_notify(SIGTRAP); |
| 301 | #ifdef DEBUG_SIG | 301 | #ifdef DEBUG_SIG |
