]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: off ipv6only for both ipv4/ipv6 binding
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 1 May 2024 12:41:50 +0000 (21:41 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:15:09 +0000 (12:15 +0200)
commit639aebaf200ff2cb5f203e71af6b051b87b076de
treeaf137157600243e6ac85ea227aac8615e88cbc4e
parent4ec012171604507a72e314c46592bcb6db0d317e
ksmbd: off ipv6only for both ipv4/ipv6 binding

commit cc00bc83f26eb8f2d8d9f56b949b62fd774d8432 upstream.

ΕΛΕΝΗ reported that ksmbd binds to the IPV6 wildcard (::) by default for
ipv4 and ipv6 binding. So IPV4 connections are successful only when
the Linux system parameter bindv6only is set to 0 [default value].
If this parameter is set to 1, then the ipv6 wildcard only represents
any IPV6 address. Samba creates different sockets for ipv4 and ipv6
by default. This patch off sk_ipv6only to support IPV4/IPV6 connections
without creating two sockets.

Cc: stable@vger.kernel.org
Reported-by: ΕΛΕΝΗ ΤΖΑΒΕΛΛΑ <helentzavellas@yahoo.gr>
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/transport_tcp.c