]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix wrong allocation size update in smb2_open()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 4 Dec 2023 13:23:34 +0000 (22:23 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:34 +0000 (14:48 +0000)
commit2b5f1692a95bf243f969db7358d8af3cf703f40b
tree929dd4aaec89708bdfef8b073f92905d3b660fce
parent05059601518eb93b185a2c4d462102c01fb0d7a2
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