]> err.no Git - linux-2.6/commit
x86 ptrace: user-sets-TF nits
authorRoland McGrath <roland@redhat.com>
Wed, 9 Jul 2008 09:39:29 +0000 (02:39 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 16 Jul 2008 19:15:17 +0000 (12:15 -0700)
commit380fdd7585a4c2f41b48925eba85c0654b7b858b
tree3e405cd6cb0be449671ef28c6275fd7ad6b99295
parentd4d67150165df8bf1cc05e532f6efca96f907cab
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>
arch/x86/kernel/ptrace.c
arch/x86/kernel/step.c
include/asm-x86/thread_info.h