Skip to content

Commit 0268a7c

Browse files
namjaejeonsmfrench
authored andcommitted
ksmbd: common: use struct_group_attr instead of struct_group for network_open_info
4byte padding cause the connection issue with the applications of MacOS. smb2_close response size increases by 4 bytes by padding, And the smb client of MacOS check it and stop the connection. This patch use struct_group_attr instead of struct_group for network_open_info to use __packed to avoid padding. Fixes: 0015eb6 ("smb: client, common: fix fortify warnings") Cc: stable@vger.kernel.org Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 4973b04 commit 0268a7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/common/smb2pdu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ struct smb2_close_rsp {
711711
__le16 StructureSize; /* 60 */
712712
__le16 Flags;
713713
__le32 Reserved;
714-
struct_group(network_open_info,
714+
struct_group_attr(network_open_info, __packed,
715715
__le64 CreationTime;
716716
__le64 LastAccessTime;
717717
__le64 LastWriteTime;

0 commit comments

Comments
 (0)