]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: limit read/write/trans buffer size not to exceed 8MB
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 15 Oct 2021 08:14:02 +0000 (17:14 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 15 Oct 2021 14:18:29 +0000 (09:18 -0500)
commit4bc59477c3298b191c72b5d99feb54a1dc8c254d
tree39815c754c15dfa9f577f4e757aae133d5554123
parentdbad63001eac3abeeb2b66ddf71504e8ab128c5c
ksmbd: limit read/write/trans buffer size not to exceed 8MB

ksmbd limit read/write/trans buffer size not to exceed maximum 8MB.
And set the minimum value of max response buffer size to 64KB.
Windows client doesn't send session setup request if ksmbd set max
trans/read/write size lower than 64KB in smb2 negotiate.
It means windows allow at least 64 KB or more about this value.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2ops.c
fs/ksmbd/smb2pdu.c
fs/ksmbd/smb2pdu.h