cifs: limit amount of data we request for xattrs to CIFSMaxBufSize
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 29 Jan 2019 02:46:17 +0000 (12:46 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 29 Jan 2019 22:17:25 +0000 (16:17 -0600)
commitc4627e66f73a28c5515b908c90c2bf7120086497
tree857fafd021a0dda647645574c20b8dc44fe0d945
parent58d15ed1203f4d858c339ea4d7dafa94bd2a56d3
cifs: limit amount of data we request for xattrs to CIFSMaxBufSize

minus the various headers and blobs that will be part of the reply.

or else we might trigger a session reconnect.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.h