[PATCHSET] honour output buffer length for SMB2 GetInfo

Ralph Wuerthner ralphw at de.ibm.com
Mon Jul 29 02:01:06 MDT 2013


Hi,

please see attached patchset to honour output buffer length set by the 
client for SMB2 GetInfo requests. The patchset also enhances GetInfo for 
file system information classes SMB_QUERY_FS_VOLUME_INFO and 
SMB_QUERY_FS_ATTRIBUTE_INFO to return partial, but valid data in case 
output buffer length is too small. This behaviour is documented in MS-FSCC.

We had a customer defect where a client submitted a GetInfo 
SMB_QUERY_FS_VOLUME_INFO request with a output buffer length of 24 
bytes. Samba responded with a full length response of 40 bytes which 
resulted in a client error.

Regards

     Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s3-smbd-honour-output-buffer-length.patch
Type: text/x-patch
Size: 6055 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130729/e244b493/attachment.bin>


More information about the samba-technical mailing list