freebsd-src/sys/netsmb
Rick Macklem e06f502c9e When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy()
would call smb_iod_request(). This call could return as soon as the
wakeup(evp) in smb_iod_main() call is done and then could destroy
the mutexes. This caused a race with the rest of smb_iod_main()s
use of these mutexes.
A crash reported on freebsd-stable@ by Christian Kratzer was
diagnosed as a use of one of these mutexes after it was destroyed.
This patch moves destruction of the mutexes from smb_iod_destroy()
to the end of smb_iod_thread(), so that they aren't destroyed before
the thread is done with them. Christian comfirmed that the patch
stopped the crashes from happening.

Reported by:	ck-lists@cksoft.de (Christian Kratzer)
Tested by:	ck-lists@cksoft.de (Christian Kratzer)
Diagnosed by:	jhb
Reviewed by:	jhb
MFC after:	2 weeks
2015-11-16 23:19:53 +00:00
..
netbios.h Remove IPX support. 2014-03-14 02:58:48 +00:00
smb.h
smb_conn.c Remove a reference to LK_DRAIN now that lockmgr(9) is gone from this 2013-06-28 20:21:13 +00:00
smb_conn.h Overhaul locking in netsmb, getting rid of the obsolete lockmgr() primitive. 2013-05-04 14:18:10 +00:00
smb_crypt.c
smb_dev.c Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
smb_dev.h Completely rewrite the interface to smbdev switching from dev_clone 2013-05-04 14:03:18 +00:00
smb_iod.c When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy() 2015-11-16 23:19:53 +00:00
smb_rq.c Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
smb_rq.h
smb_smb.c Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
smb_subr.c Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
smb_subr.h
smb_tran.h
smb_trantcp.c Catch up with sb_timeo type change in r255138. This fixes 2013-11-08 08:44:09 +00:00
smb_trantcp.h
smb_usr.c Fix panic due to page faults while in kernel mode, under conditions of 2012-10-31 03:34:07 +00:00