Skip to content

Commit 67a8771

Browse files
namjaejeongregkh
authored andcommitted
ksmbd: common: use struct_group_attr instead of struct_group for network_open_info
commit 0268a7c upstream. 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: [email protected] Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4687606 commit 67a8771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/common/smb2pdu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ struct smb2_close_rsp {
699699
__le16 StructureSize; /* 60 */
700700
__le16 Flags;
701701
__le32 Reserved;
702-
struct_group(network_open_info,
702+
struct_group_attr(network_open_info, __packed,
703703
__le64 CreationTime;
704704
__le64 LastAccessTime;
705705
__le64 LastWriteTime;

0 commit comments

Comments
 (0)