]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: extend the connection limiting mechanism to support IPv6
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 17 Aug 2025 00:48:40 +0000 (09:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:14 +0000 (16:34 +0200)
commit8c9ee2e4f58ea395cfd4b0916aa6c9ddfbb7df2c
treebac8ea19e9a2d2be4f8cc889a4254aac86449970
parent9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8
ksmbd: extend the connection limiting mechanism to support IPv6

commit c0d41112f1a5828c194b59cca953114bc3776ef2 upstream.

Update the connection tracking logic to handle both IPv4 and IPv6
address families.

Cc: stable@vger.kernel.org
Fixes: e6bb91939740 ("ksmbd: limit repeated connections from clients with the same IP")
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