CIFS: Fix too big maxBuf size for SMB3 mounts
authorPavel Shilovsky <piastry@etersoft.ru>
Fri, 14 Feb 2014 09:31:02 +0000 (13:31 +0400)
committerSteve French <smfrench@gmail.com>
Fri, 14 Feb 2014 22:50:47 +0000 (16:50 -0600)
SMB3 servers can respond with MaxTransactSize of more than 4M
that can cause a memory allocation error returned from kmalloc
in a lock codepath. Also the client doesn't support multicredit
requests now and allows buffer sizes of 65536 bytes only. Set
MaxTransactSize to this maximum supported value.

Cc: stable@vger.kernel.org # 3.7+
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2glob.h
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c

Simple merge
Simple merge
Simple merge