smb311: correct incorrect offset field in compression header
authorSteve French <stfrench@microsoft.com>
Tue, 19 Mar 2024 20:59:38 +0000 (15:59 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 20 Mar 2024 16:49:44 +0000 (11:49 -0500)
The offset field in the compression header is 32 bits not 16.

Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reported-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smb2pdu.h

index 20784f76a60455504e6febd6bd3d22f9ce43bee2..a23b56f93c36eb837e3a410e0dd9f01c1b0b5cc4 100644 (file)
@@ -227,7 +227,7 @@ struct smb2_compression_hdr {
        __le32 OriginalCompressedSegmentSize;
        __le16 CompressionAlgorithm;
        __le16 Flags;
-       __le16 Offset; /* this is the size of the uncompressed SMB2 header below */
+       __le32 Offset; /* this is the size of the uncompressed SMB2 header below */
        /* uncompressed SMB2 header (READ or WRITE) goes here */
        /* compressed data goes here */
 } __packed;