ksmbd: common: use struct_group_attr instead of struct_group for network_open_info
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 19 Apr 2024 14:46:34 +0000 (23:46 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 20 Apr 2024 01:48:47 +0000 (20:48 -0500)
commit0268a7cc7fdc47d90b6c18859de7718d5059f6f1
treeaf9379cea19b5afdfd77f1da58e6580224b0b335
parent4973b04d3ea577db80c501c5f14e68ec69fe1794
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: 0015eb6e1238 ("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>
fs/smb/common/smb2pdu.h