[PATCH][SMB3] workaround negprot bug in some Samba servers by changing order of negcontexts sent by Linux kernel client

Steve French smfrench at gmail.com
Tue Jul 12 05:34:21 UTC 2022


Starting with 5.18.8 (and 5.19-rc4) mount can now fail to older Samba
servers due to a server bug handling padding at the end of the last
negotiate context (negotiate contexts typically round up to 8 byte
lengths by adding padding if needed). This server bug can be avoided
by switching the order of negotiate contexts, placing a negotiate
context at the end that does not require padding (prior to the recent
netname context fix this was the case on the client).

Fixes: 73130a7b1ac9 ("smb3: fix empty netname context on secondary channels")

See attached fix to cifs.ko
-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-workaround-negprot-bug-in-some-Samba-servers.patch
Type: text/x-patch
Size: 2110 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20220712/e7e9ae9a/0001-smb3-workaround-negprot-bug-in-some-Samba-servers.bin>


More information about the samba-technical mailing list