aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/thread_info.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-07-09 02:39:29 -0700
committerRoland McGrath <roland@redhat.com>2008-07-16 12:15:17 -0700
commit380fdd7585a4c2f41b48925eba85c0654b7b858b (patch)
tree3e405cd6cb0be449671ef28c6275fd7ad6b99295 /include/asm-x86/thread_info.h
parentd4d67150165df8bf1cc05e532f6efca96f907cab (diff)
x86 ptrace: user-sets-TF nits
This closes some arcane holes in single-step handling that can arise only when user programs set TF directly (via popf or sigreturn) and then use vDSO (syscall/sysenter) system call entry. In those entry paths, the clear_TF_reenable case hits and we must check TIF_SINGLESTEP to be sure our bookkeeping stays correct wrt the user's view of TF. Signed-off-by: Roland McGrath <roland@redhat.com>
Diffstat (limited to 'include/asm-x86/thread_info.h')
-rw-r--r--include/asm-x86/thread_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/thread_info.h b/include/asm-x86/thread_info.h
index b2702a1eeac..0a8f27d31d0 100644
--- a/include/asm-x86/thread_info.h
+++ b/include/asm-x86/thread_info.h
@@ -118,7 +118,7 @@ struct thread_info {
/* work to do in syscall_trace_enter() */
#define _TIF_WORK_SYSCALL_ENTRY \
(_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU | \
- _TIF_SYSCALL_AUDIT | _TIF_SECCOMP)
+ _TIF_SYSCALL_AUDIT | _TIF_SECCOMP | _TIF_SINGLESTEP)
/* work to do in syscall_trace_leave() */
#define _TIF_WORK_SYSCALL_EXIT \