From: Steve French <stfrench@microsoft.com>
Date: Wed, 14 Jul 2021 23:32:09 -0500
Subject: [PATCH] SMB3.1.1: fix mount failure to some servers when compression
enabled
Git-commit: 4511d7c8f440ab13520601141d67d13cb074620a
References: bsc#1190317
Patch-mainline: v5.14-rc2
When sending the compression context to some servers, they rejected
the SMB3.1.1 negotiate protocol because they expect the compression
context to have a data length of a multiple of 8.
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
---
fs/cifs/smb2pdu.h | 1 +
1 file changed, 1 insertion(+)
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -397,6 +397,7 @@ struct smb2_compression_capabilities_con
__u16 Padding;
__u32 Flags;
__le16 CompressionAlgorithms[3];
+ __u16 Pad; /* Some servers require pad to DataLen multiple of 8 */
} __packed;
/*