Fwd: [PATCH][SMB client] send ChannelSequence number after reconnect

Steve French smfrench at gmail.com
Fri Aug 25 04:51:10 UTC 2023


The ChannelSequence field in the SMB3 header is supposed to be
increased after reconnect to allow the server to distinguish
requests from before and after the reconnect.  We had always
been setting it to zero.  There are cases where incrementing
ChannelSequence on requests after network reconnects can reduce
the chance of data corruptions.

See MS-SMB2 3.2.4.1 and 3.2.7.1

Note that (as Tom Talpey pointed out) a macro  "CIFS_SERVER_IS_CHAN"
used by this patch is confusing (has a confusing name) since
multichannel is not supported for older dialects like CIFS.  I will
fix that macro name in a followon patch.

-- 
Thanks,

Steve


-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SMB3-send-channel-sequence-number-in-SMB3-requests-a.patch
Type: application/x-patch
Size: 4677 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20230824/6d2b3109/0001-SMB3-send-channel-sequence-number-in-SMB3-requests-a.bin>


More information about the samba-technical mailing list