]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: validate command request size
authorLong Li <leo.lilong@huawei.com>
Sat, 29 Jul 2023 03:36:18 +0000 (11:36 +0800)
committerSteve French <stfrench@microsoft.com>
Sun, 6 Aug 2023 01:56:54 +0000 (20:56 -0500)
commit5aa4fda5aa9c2a5a7bac67b4a12b089ab81fee3c
treeed650d5eedca34957157bb091e06934ae9d7afcf
parent5d0c230f1de8c7515b6567d9afba1f196fb4e2f4
ksmbd: validate command request size

In commit 2b9b8f3b68ed ("ksmbd: validate command payload size"), except
for SMB2_OPLOCK_BREAK_HE command, the request size of other commands
is not checked, it's not expected. Fix it by add check for request
size of other commands.

Cc: stable@vger.kernel.org
Fixes: 2b9b8f3b68ed ("ksmbd: validate command payload size")
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Long Li <leo.lilong@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2misc.c