]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSteve French <stfrench@microsoft.com>
Fri, 4 Feb 2022 06:12:22 +0000 (00:12 -0600)
commitdad5f4c55b2211cc7f2680929d85454df26778aa
tree058960c6cad452f40026442df0265681a79bdd53
parent926a98eadd487be188cce9507840a8f8c6bedc79
ksmbd: don't align last entry offset in smb2 query directory

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