]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:36:54 +0000 (17:36 +0100)
commit1c2461b41f302948708d9c5db970226d5d2e8474
treec9ff629223aa89be69ce4a0a1d4b330a3d8e7b16
parent49f47945386e7c202339965e5d5adb294538523f
ksmbd: smb2: Allow messages padded to 8byte boundary

commit e7b8b8ed9960bf699bf4029f482d9e869c094ed6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb2misc.c