]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix wrong allocation size update in smb2_open()
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Dec 2023 07:13:32 +0000 (16:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:37 +0000 (15:18 +0100)
commit98235bc13aa8cc939d297fcc68852d9721fa25b3
treeb57adb8cdde381a8934c6db1671c659ab4d39676
parent04b8e04f8f89f255ae3fec250b149e3ffd724a7c
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/smb/server/smb2pdu.c