]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: when mounting with multichannel include it in requested capabilities
authorSteve French <stfrench@microsoft.com>
Fri, 7 May 2021 23:24:11 +0000 (18:24 -0500)
committerSteve French <stfrench@microsoft.com>
Sat, 8 May 2021 15:44:11 +0000 (10:44 -0500)
commitdc49d2b0cf94b0f1ae16b21ef205907619d93d48
tree331927fad43aaf6cb67f08992319d6ad1e0e013e
parent6dbe756d33584e3ac054cb91aecd65417fb949c5
smb3: when mounting with multichannel include it in requested capabilities

In the SMB3/SMB3.1.1 negotiate protocol request, we are supposed to
advertise CAP_MULTICHANNEL capability when establishing multiple
channels has been requested by the user doing the mount. See MS-SMB2
sections 2.2.3 and 3.2.5.2

Without setting it there is some risk that multichannel could fail
if the server interpreted the field strictly.

Reviewed-By: Tom Talpey <tom@talpey.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c