]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: limit repeated connections from clients with the same IP
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 5 Aug 2025 09:13:13 +0000 (18:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:09:06 +0000 (12:09 +0200)
commitfa1c47af4ff641cf9197ecdb1f8240cbb30389c1
tree99261ef6a7b462982e40caa79fbe3c56e4d06d41
parent62d136d306214448e317d573ae2b92ed8b159e31
ksmbd: limit repeated connections from clients with the same IP

commit e6bb9193974059ddbb0ce7763fa3882bd60d4dc3 upstream.

Repeated connections from clients with the same IP address may exhaust
the max connections and prevent other normal client connections.
This patch limit repeated connections from clients with the same IP.

Reported-by: tianshuo han <hantianshuo233@gmail.com>
Cc: stable@vger.kernel.org
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/smb/server/connection.h
fs/smb/server/transport_tcp.c