]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Work around mount failure when using SMB3 dialect to Macs
authorSteve French <smfrench@gmail.com>
Thu, 4 May 2017 02:12:20 +0000 (21:12 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 4 May 2017 02:23:48 +0000 (21:23 -0500)
commit741e5747b7f8fb7250a330bd21074b68a9f01d09
treecf9f0f71b301cc950949dfff20bdad9bebe0ed97
parent2bc60faeb4371e1796b038c7fb92dfa4e9563b18
SMB3: Work around mount failure when using SMB3 dialect to Macs

Macs send the maximum buffer size in response on ioctl to validate
negotiate security information, which causes us to fail the mount
as the response buffer is larger than the expected response.

Changed ioctl response processing to allow for padding of validate
negotiate ioctl response and limit the maximum response size to
maximum buffer size.

Signed-off-by: Steve French <steve.french@primarydata.com>
CC: Stable <stable@vger.kernel.org>
fs/cifs/smb2pdu.c