]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r228360
authorpho <pho@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 16 Dec 2011 12:53:15 +0000 (12:53 +0000)
committerpho <pho@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 16 Dec 2011 12:53:15 +0000 (12:53 +0000)
commit28c791484db2f09a45994da61e13a0ca8c8fe4db
treec86943ecab5efd78a4638763c0fa100ef0f209e1
parent68ba6dae3dadbc6dd295dd845f1ad121da86b333
MFC: r228360

Move cpu_set_upcall(newtd, td) up before the first call of
thread_free(newtd).  This to avoid a possible page fault in
cpu_thread_clean() as seen on amd64 with syscall fuzzing.

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