linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: Shyam Prasad <nspmangalore@gmail.com>,
	CIFS <linux-cifs@vger.kernel.org>,
	 samba-technical <samba-technical@lists.samba.org>
Subject: Multichannel mount failures to Samba depending on IP address (single channel works)
Date: Tue, 18 Nov 2025 17:46:26 -0600	[thread overview]
Message-ID: <CAH2r5ms6CEykTOCFyJ4GVx2hBGX3EzrtNwgE4z+2_+LuYASRAg@mail.gmail.com> (raw)

Saw an interesting multichannel failure scenario to Samba today:

Samba server smb.conf has
   "server multi channel support = yes"
in the [global] section but it does not include a line for
"interfaces" (uses the default)

On localhost, mounting to current Samba from Linux (tried various
versions of cifs.ko so does not appear to be a recent regression),
noticed:

1) mount -t cifs //locahost/share /mnt                                    worked
2) mount -t cifs //localhost/share /mnt -o multichannel          failed
3) mount -t cifs //127.0.0.1/share /mnt                                   worked
4) mount -t cifs //127.0.0.1/share /mnt -o multichannel          failed
5) mount -t cifs //192.168.1.190/share /mnt -o multichannel   worked

When mounting with "localhost" or "127.0.0.1" as the server name (non
multichannel) note that it does not show [CONNECTED] in
/proc/fs/cifs/DebugData

Server interfaces: 3 Last updated: 3 seconds ago
1) Speed: 1Gbps
Capabilities: None
IPv4: 192.168.1.198
Weight (cur,total): (0,1)
Allocated channels: 0

2) Speed: 1Gbps
Capabilities: None
IPv6: 2603:8080:2200:13fc:c82b:b16f:52c8:2329
Weight (cur,total): (0,1)
Allocated channels: 0

3) Speed: 1Gbps
Capabilities: None
IPv6: 2603:8080:2200:13fc:5b60:a7d6:77d7:72cc
Weight (cur,total): (0,1)
Allocated channels: 0

Note that when mounting to "192.168.1.190" (non-multichannel) it only
shows two instead of three interfaces (not sure why it drops one of
the IPv6 ones) but it does correctly show [CONNECTED]

Server interfaces: 2 Last updated: 1 seconds ago
1) Speed: 1Gbps
Capabilities: None
IPv4: 192.168.1.198
Weight (cur,total): (1,1)
Allocated channels: 1
[CONNECTED]

2) Speed: 1Gbps
Capabilities: None
IPv6: 2603:8080:2200:13fc:5b60:a7d6:77d7:72cc
Weight (cur,total): (0,1)
Allocated channels: 0

The mount failures with multichannel to 127.0.0.1 are weird - the
first negprot/sessionsetup/tcon works fine but the second negprot then
sessionsetup fails with the server returning with
"STATUS_SESSION_DELETED" which seems strange (since the session is
valid, and channel one session setup worked fine).  Any idea if this
is a Samba server bug?

Presumably the workaround is to add an "interfaces" line to smb.conf
to force it to return 127.0.0.1 as a valid interface, but this still
seems like it could be a server bug.  And quite confusing to users (as
"Resource temporarily unavailable" won't make sense to them since
single channel works fine) Any thoughts?

And log messages are unlikely to help the user figure out the server
config (or bug) issue.

[12421.964837] CIFS: Attempting to mount //localhost/test
[12422.032199] CIFS: VFS: \\localhost Send error in SessSetup = -11
[12422.032234] CIFS: VFS: failed to open extra channel on
iface:192.168.1.198 rc=-11
[12422.137163] CIFS: successfully opened new channel on
iface:2603:8080:2200:13fc:c82b:b16f:52c8:2329
[12422.137401] CIFS: VFS: reconnect tcon failed rc = -11

Thoughts?

-- 
Thanks,

Steve

             reply	other threads:[~2025-11-18 23:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 23:46 Steve French [this message]
2025-11-19  0:08 ` Multichannel mount failures to Samba depending on IP address (single channel works) Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH2r5ms6CEykTOCFyJ4GVx2hBGX3EzrtNwgE4z+2_+LuYASRAg@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    --cc=nspmangalore@gmail.com \
    --cc=samba-technical@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).