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)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Aug 2025 23:22:58 +0000 (18:22 -0500)
commite6bb9193974059ddbb0ce7763fa3882bd60d4dc3
treed8d23cbea4af4bf558e1fa4bedd50a6fa7b2b028
parenta6c015b7ac2d8c5233337e5793f50d04fac17669
ksmbd: limit repeated connections from clients with the same IP

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>
fs/smb/server/connection.h
fs/smb/server/transport_tcp.c