diff options
| author | Jan Koester <j.koester@act-marketing.de> | 2026-10-26 10:25:37 +0100 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-26 19:15:37 +0900 |
| commit | 1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea (patch) | |
| tree | be88cc71fcec595577e1758fe36b8f815f513dd5 /scripts/Makefile.thinlto | |
| parent | f728cfee6929057087c303d07d7a6a7c61196b48 (diff) | |
| download | linux-1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea.tar.gz linux-1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea.zip | |
ksmbd: ignore network devices of other namespaces
With no interface list configured, ksmbd binds every interface that
comes up. ksmbd_netdev_event() does not look at the device's namespace,
and create_socket() opens the listener in the namespace of the task
raising NETDEV_UP. A container with its own address on a bridge brings
up its interface and finds port 445 in its namespace already taken by
ksmbd, so an SMB server running inside the container fails with
"Address already in use".
Interfaces are also matched by name only, so a container's eth0 going
down would stop the listener on the host's eth0.
Only handle netdev events for devices in init_net.
Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org
Signed-off-by: Jan Koester <j.koester@act-marketing.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
