-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Lately upgraded kernel on debian linux pc from 6.12 to 6.16. And got issue: stale network connection with ksmbd if network stack configured as network bridge. On 6.12 kernel and bridge configured SMB, connection from other pc to ksmbd works fine.
I am using network bridge configuration with systemd-networkd.
10-bridge0-create.netdev
[NetDev]
Name=bridge0
Kind=bridge
20-add-enp3s0-to-bridge0.network
[Match]
Name=enp3s0
[Network]
Bridge=bridge0
30-bridge0-en.network
[Match]
Name=bridge0
[Link]
#MTUBytes=9000
Multicast=yes
[Network]
DHCP=no
Address=192.168.31.2/24
Gateway=192.168.31.1
DNS=1.1.1.1
DNS=1.0.0.1
DNSOverTLS=yes
MulticastDNS=yes
LLMNR=no
LLDP=yes
[DHCPv4]
UseDNS=no
First connection from windows pc sucessfully established and works fine. When i turn off windows pc, linux pc with ksmbd does not shutdown network conection. Connection keeps in established state.
netstat -an |grep 445
tcp6 0 0 :::445 :::* LISTEN
tcp6 0 0 fe80::d078:bfff:fef:445 fe80::82b8:66f6:1:61156 ESTABLISHED
tcp6 0 0 192.168.31.2:445 192.168.31.175:51511 ESTABLISHED
tcp6 0 0 fe80::d078:bfff:fef:445 fe80::7967:540:1d:55497 ESTABLISHED
This is when only one windows pc is turned on.
Same issue with network bridge configured via ifupdown /etc/network/intefaces
Other linux PC configured without network bridge do not have same issue. Connection gracefuly closed.
Restart ksmbd or force close socket helps only one time
systemctl stop ksmbd
systemctl start ksmbd
ss -K dport 61156
ss -K dport 51511
ss -K dport 55497