ksmbd: don't align last entry offset in smb2 query directory
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 30 Jan 2022 09:31:01 +0000 (18:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:18 +0000 (12:03 +0100)
commit5644bf688e4a6042e57288cbc28cc083febb8f99
tree44ad88a3f33bbaaa96f68ba5f118a35929abfba2
parent03dd71e0b9d8e9dac462f51aad69455c5a7a25da
ksmbd: don't align last entry offset in smb2 query directory

[ Upstream commit 04e260948a160d3b7d622bf4c8a96fa4577c09bd ]

When checking smb2 query directory packets from other servers,
OutputBufferLength is different with ksmbd. Other servers add an unaligned
next offset to OutputBufferLength for the last entry.

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
fs/ksmbd/vfs.h