]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 287870:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 Oct 2015 00:50:26 +0000 (00:50 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 Oct 2015 00:50:26 +0000 (00:50 +0000)
commit42be6159e300a482c7f3d74d6a18e0a32f650427
tree03d2cddd07415ecf945befe46caf5c867d2204b4
parent75884a9b5fc3e00f0b6cc6833ab4cf9594b73072
MFC 287870:
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.

git-svn-id: svn://svn.freebsd.org/base/stable/9@288969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_syscall.c