Name string of SMB2_CREATE_ALLOCATION_SIZE is AlSi or AISi ?

Ralph Boehme slow at samba.org
Tue Dec 5 10:01:10 UTC 2023


On 12/5/23 08:48, Namjae Jeon via samba-technical wrote:
> I found that name strings of SMB2_CREATE_ALLOCATION_SIZE are different
> between samba and cifs/ksmbd like the following. In the MS-SMB2
> specification, the name of SMB2_CREATE_ALLOCATION_SIZE is defined as
> AISi.
> Is it a typo in the specification or is samba defining it incorrectly?
> 
> samba-4.19.2/libcli/smb/smb2_constants.h :
> #define SMB2_CREATE_TAG_ALSI "AlSi"
> 
> /fs/smb/common/smb2pdu.h :
> #define SMB2_CREATE_ALLOCATION_SIZE             "AISi"

looks like a bug in MS-SMB2: they have the value as 0x416c5369, which is 
"AlSi", with an "l" like in "l"ake.

Adding dochelp to cc.

@dochelp: looks like you have a small bug in MS-SMB2. :)

-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20231205/7c334936/OpenPGP_signature.sig>


More information about the samba-technical mailing list