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

Shyam Prasad N nspmangalore at gmail.com
Tue Jul 12 07:04:30 UTC 2022

On Tue, Jul 12, 2022 at 11:04 AM Steve French <smfrench at gmail.com> wrote:
> 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

Looks good to me.


More information about the samba-technical mailing list