Fix a kernel crash that occurs when the SMB protocol stack is used. The
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 6 Jan 2005 22:31:16 +0000 (22:31 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 6 Jan 2005 22:31:16 +0000 (22:31 +0000)
commit64053d25b1547970116d57759d177bfd3e63f0a2
tree7728aca9a02f71a0f1e970be699172bc05eeb8ab
parent3f9df6359563e0cd40dba8223fd69ba384286bd6
Fix a kernel crash that occurs when the SMB protocol stack is used.  The
SMB protocol stack is still hacked to create a kernel thread with a
process structure attached to it (when we really ought to be using a pure
kernel thread... this is the only subsystem that still doesn't).  However,
the SMB code was not properly cleaning the process structure up on exit
resulting in a corrupt process a list.  A 'ps' equivalent occuring after
this situation occurs can crash the kernel.

Reported-by: Rumko <rumcic@gmail.com>
sys/netproto/smb/smb_iod.c
sys/netproto/smb/smb_subr.c
sys/netproto/smb/smb_subr.h