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: [email protected] Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4973b04 commit 0268a7c

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
@@ -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)