]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: common: change the data type of num_aces to le16
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 12 Feb 2025 14:26:09 +0000 (23:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:29 +0000 (14:39 +0200)
commitda087905e3270e2291c0afae39a28e7d183e5ec3
tree8edf7420d830472ca453ae54074b287cf8fa0ecc
parent7364420090ac14617ab816bed8cbeaad689799a8
smb: common: change the data type of num_aces to le16

[ Upstream commit 62e7dd0a39c2d0d7ff03274c36df971f1b3d2d0d ]

2.4.5 in [MS-DTYP].pdf describe the data type of num_aces as le16.

AceCount (2 bytes): An unsigned 16-bit integer that specifies the count
of the number of ACE records in the ACL.

Change it to le16 and add reserved field to smb_acl struct.

Reported-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Tested-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/cifsacl.c
fs/smb/common/smbacl.h
fs/smb/server/smbacl.c
fs/smb/server/smbacl.h