]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7458fc9e30cd45d9c6fdf6bd3bded66a066ae393
tree857fafd021a0dda647645574c20b8dc44fe0d945
parentd7db09295c84efd6a868af36d54d2e324c151ce0
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