]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: align durable reconnect v2 context to 8 byte boundary
authorBharath SM <bharathsm@microsoft.com>
Tue, 16 Dec 2025 15:56:05 +0000 (21:26 +0530)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Dec 2025 23:42:49 +0000 (17:42 -0600)
commit05f5e355cf783b30bd6eb3dec17ed1a8b3cfa95c
tree00443ed7113c613cfd50d36086e2a78559db2f03
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
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: 81a45de432c6 ("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>
fs/smb/common/smb2pdu.h