ksmbd: limits exceeding the maximum allowable outstanding requests
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 31 Dec 2021 00:26:25 +0000 (09:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:02:53 +0000 (11:02 +0100)
commitd7004f0cc4a739e315f620773392b8d867993fe8
tree69f80c30dc27b25c3951f38387abac407e64175d
parent0aadd32bebc9506b1fc88ab43c6174c2e371ad7b
ksmbd: limits exceeding the maximum allowable outstanding requests

commit b589f5db6d4af8f14d70e31e1276b4c017668a26 upstream.

If the client ignores the CreditResponse received from the server and
continues to send the request, ksmbd limits the requests if it exceeds
smb2 max credits.

Signed-off-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/connection.c
fs/ksmbd/connection.h
fs/ksmbd/smb2misc.c
fs/ksmbd/smb2pdu.c