Skip to content

Commit 05f5e35

Browse files
bharathsm-mssmfrench
authored andcommitted
smb: align durable reconnect v2 context to 8 byte boundary
Add a 4-byte Pad to create_durable_handle_reconnect_v2 so the DH2C create context is 8 byte aligned. This avoids malformed CREATE contexts on reconnect. Recent change removed this Padding, adding it back. Fixes: 81a45de ("smb: move create_durable_handle_reconnect_v2 to common/smb2pdu.h") Signed-off-by: Bharath SM <bharathsm@microsoft.com> Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 8f0b4cc commit 05f5e35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/common/smb2pdu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,7 @@ struct create_durable_handle_reconnect_v2 {
12931293
struct create_context_hdr ccontext;
12941294
__u8 Name[8];
12951295
struct durable_reconnect_context_v2 dcontext;
1296+
__u8 Pad[4];
12961297
} __packed;
12971298

12981299
/* See MS-SMB2 2.2.14.2.12 */

0 commit comments

Comments
 (0)