]> git.michaelhowe.org Git - packages/o/openafs.git/commit
windows-smb_fid_t-mx-20060130
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 31 Jan 2006 09:13:11 +0000 (09:13 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 31 Jan 2006 09:13:11 +0000 (09:13 +0000)
commitbceabce8498127c550bbe5a9a430c8589f76d162
tree8249c726ffccf3f8a7a8e60cbaeb9adff0cb095a
parentfbdd66aeef67a5a05bc41e33f046ff2879296617
windows-smb_fid_t-mx-20060130

*Includes the changes from STABLE14-windows-smb_fid_t-audit-20060125
 as well:

"Further testing revealed that some smb_vc_t objects could not be freed
because the associated smb_fid_t objects never reached a zero refcount.
Additional auditing uncovered cases in which there were holds not being
released and others in which they were released to many times.  This
patch fixes the problems and improves auditability by modifying the
behavior of the smb_IoctlXXX() functions to not release a reference
that was obtained by the caller.  Now the caller releases the reference."

Fixup token deletion logic

Surround all references to smb_fid_t flags and other references
by obtaining and releasing the 'mx' lock.
src/WINNT/afsd/afslogon.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c
src/WINNT/afsd/smb_ioctl.c