Namjae Jeon fb533473d1 ksmbd: do not allow the actual frame length to be smaller than the rfc1002 length
ksmbd allowed the actual frame length to be smaller than the rfc1002
length. If allowed, it is possible to allocates a large amount of memory
that can be limited by credit management and can eventually cause memory
exhaustion problem. This patch do not allow it except SMB2 Negotiate
request which will be validated when message handling proceeds.
Also, Allow a message that padded to 8byte boundary.

Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-02-15 00:04:38 -06:00
..
2023-01-30 20:49:30 -06:00
2021-06-28 16:28:31 +09:00
2021-06-28 16:28:31 +09:00
2021-07-02 16:27:10 +09:00
2021-06-28 16:28:31 +09:00
2022-04-14 20:56:13 -05:00
2023-01-20 15:27:48 -06:00
2022-10-20 10:13:27 +02:00
2021-06-28 16:28:31 +09:00
2021-06-28 16:28:31 +09:00
2021-06-28 16:28:31 +09:00
2021-06-28 16:28:31 +09:00
2022-10-19 12:55:42 +02:00