]> git.itanic.dy.fi Git - linux-stable/commit
ksmbd: smb2: Allow messages padded to 8byte boundary
authorGustav Johansson <gustajo@axis.com>
Fri, 5 May 2023 15:05:07 +0000 (00:05 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 16 May 2023 15:26:14 +0000 (10:26 -0500)
commite7b8b8ed9960bf699bf4029f482d9e869c094ed6
treeb883d7b0f971e0a8c18daca1c1894fdb4d938f48
parent443d61d1fa9faa60ef925513d83742902390100f
ksmbd: smb2: Allow messages padded to 8byte boundary

clc length is now accepted to <= 8 less than length,
rather than < 8.

Solve issues on some of Axis's smb clients which send
messages where clc length is 8 bytes less than length.

The specific client was running kernel 4.19.217 with
smb dialect 3.0.2 on armv7l.

Cc: stable@vger.kernel.org
Signed-off-by: Gustav Johansson <gustajo@axis.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2misc.c