]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix wrong allocation size update in smb2_open()
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 27 Dec 2023 10:26:05 +0000 (19:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:13:37 +0000 (15:13 +0100)
commit8bf06286d740719ce0d7012a9c860447491b8c00
treebef6d3ea9396f36456f70f0992cd92b6462d5722
parent06208a04a7bd6ac3a359de2fa047e71f474f24b9
ksmbd: fix wrong allocation size update in smb2_open()

[ Upstream commit a9f106c765c12d2f58aa33431bd8ce8e9d8a404a ]

When client send SMB2_CREATE_ALLOCATION_SIZE create context, ksmbd update
old size to ->AllocationSize in smb2 create response. ksmbd_vfs_getattr()
should be called after it to get updated stat result.

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/ksmbd/smb2pdu.c