summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2013-08-17 17:02:43 +0000
committerbryanv <bryanv@FreeBSD.org>2013-08-17 17:02:43 +0000
commit1b4affdd250f5e8bf3c007e7cc9a8b5b620a3c1f (patch)
tree031e3935d014cec1e86fd81c2d7288a55eec09e1 /usr.bin
parenta1b54d7928341f63cab51c997c014f6d55206545 (diff)
downloadFreeBSD-src-1b4affdd250f5e8bf3c007e7cc9a8b5b620a3c1f.zip
FreeBSD-src-1b4affdd250f5e8bf3c007e7cc9a8b5b620a3c1f.tar.gz
Do not use potentially stale thread in kthread_add()
When an existing process is provided, the thread selected to use to initialize the new thread could have exited and be reaped. Acquire the proc lock earlier to ensure the thread remains valid. Reviewed by: jhb, julian (previous version) MFC after: 3 days
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud