]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:49:47 +0000 (14:49 +0200)
commit6f95f1925abbced7445385d5b06c7cfc558dec36
treeefc14a9daf1cbd57cffd2fa8d8c9d86fb125affd
parent49f70d15b5b9780269a9397ac28c63fe20563ae0
SMB3: Work around mount failure when using SMB3 dialect to Macs

commit 7db0a6efdc3e990cdfd4b24820d010e9eb7890ad upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c