Help with recent CIFS issue

Something got messed up in Tumbleweed. What worked flawlessly nowfails with:

Jun 23 07:59:52 erlangen kernel: **FS-Cache: Loaded**
Jun 23 07:59:52 erlangen kernel: **Key type dns_resolver registered**
Jun 23 07:59:52 erlangen kernel: **Key type cifs.spnego registered**
Jun 23 07:59:52 erlangen kernel: **Key type cifs.idmap registered**
Jun 23 07:59:52 erlangen kernel: **Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers**
Jun 23 07:59:52 erlangen kernel: **CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers**
Jun 23 07:59:52 erlangen kernel: CIFS: Attempting to mount \\fritz.box\FRITZ.NAS 
Jun 23 08:02:58 erlangen kernel: **CIFS: VFS: \\fritz.box has not responded in 180 seconds. Reconnecting...**
Jun 23 08:06:05 erlangen kernel: **CIFS: VFS: \\fritz.box has not responded in 180 seconds. Reconnecting...**
Jun 23 08:06:05 erlangen kernel: **CIFS: VFS: \\fritz.box Send error in SessSetup = -11**
Jun 23 08:09:12 erlangen kernel: **CIFS: VFS: \\fritz.box has not responded in 180 seconds. Reconnecting...**
Jun 23 08:09:12 erlangen kernel: **CIFS: VFS: \\fritz.box Send error in SessSetup = -11**
Jun 23 08:12:18 erlangen kernel: **CIFS: VFS: \\fritz.box has not responded in 180 seconds. Reconnecting...**
Jun 23 08:12:18 erlangen kernel: **CIFS: VFS: \\fritz.box Send error in SessSetup = -11**

Cifs worked for years without any problems. Could be an issue caused by a fix such as:

  • Update to version 6.15
    • CVE-2022-27239: mount.cifs: fix length check for ip option parsing
      Previous check was true whatever the length of the input string was,
      leading to a buffer overflow in the subsequent strcpy call.
    • mount.cifs: fix verbose messages on option parsing

Updated Leap 15.3 and retried:

**Leap-15-3:~ #** mount /fritz.box 
 Password for ftpuser@//fritz.box/FRITZ.NAS:  ********                 
mount error: Server abruptly closed the connection. 
This can happen if the server does not support the SMB version you are trying to use. 
The default SMB version recently changed from SMB1 to SMB2.1 and above. Try mounting with vers=1.0. 
mount error(112): Host is down 
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) 
**Leap-15-3:~ #**

:frowning:

**Leap-15-3:~ #** journalctl -b -g cifs 
-- Logs begin at Fri 2021-08-06 10:17:37 CEST, end at Thu 2022-06-23 11:26:12 CEST. -- 
Jun 23 11:23:08 Leap-15-3 kernel: **FS-Cache: Netfs '****cifs****' registered for caching**
Jun 23 11:23:08 Leap-15-3 kernel: **Key type ****cifs****.spnego registered**
Jun 23 11:23:08 Leap-15-3 kernel: **Key type ****cifs****.idmap registered**
Jun 23 11:23:08 Leap-15-3 kernel: **CIFS****: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers**
Jun 23 11:23:08 Leap-15-3 kernel: CIFS: Attempting to mount \\fritz.box\FRITZ.NAS 
Jun 23 11:23:08 Leap-15-3 kernel: **CIFS****: VFS: cifs_mount failed w/return code = -112**
**Leap-15-3:~ #**
[FONT=monospace]**Leap-15-3:~ #** grep fritz.box /etc/fstab 
//**fritz.box**/FRITZ.NAS                      /**fritz.box**              cifs   noauto,username=ftpuser,vers=1.0  0  0 
**Leap-15-3:~ #**[/FONT]

Removed the media from the FRITZ!Box and replugged.

Success:

Jun 23 11:37:17 Leap-15-3 kernel: **Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers**
Jun 23 11:37:17 Leap-15-3 kernel: **CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers**
Jun 23 11:37:17 Leap-15-3 kernel: CIFS: Attempting to mount \\fritz.box\FRITZ.NAS 
Jun 23 11:37:17 Leap-15-3 kernel: **CIFS: VFS: multichannel is not supported on this protocol version, use 3.0 or abov**

Error messages can be confusing.

https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15-SP4/index.html

5.10.1.3 SMB1 support has been deprecated

With Samba 4.17 it is planned to disable the SMB1 protocol. We therefore deprecated SMB1 for a possible future update of Samba. This affects the Samba file server, its libraries and clients, as well as the kernel CIFS client (cifs.ko and mount.cifs). This version of the protocol is insecure and usage of version 2.02 or later is recommended.

@karlmistelberger: Can you connect successfully using SMB2? And using smbclient?

smbclient -L <server_name>/<share> -U <username> -d 256

No way: https://en.avm.de/service/knowledge-base/dok/FRITZ-Box-7360-int/3327_SMB-versions-supported-by-the-FRITZ-Box/

Then you have a decision to make

The FRITZ!Box supports version 1.0 of the network protocol SMB. The FRITZ!Box does not support versions 2 and 3 of the SMB protocol (SMB2, SMB3).
If you cannot use SMB 1.0 or do not want to, use http://fritz.nas or the FTP protocol to access the storage, for example with Cyberduck, FileZilla, or WinSCP.

Yep. I use it mostly for testing connectivity of the machines users are bringing in: https://forums.opensuse.org/showthread.php/561241-Segfault-Trouble-Shooting

I use for a Fritzbox 7490:

//192.168.0.254/fritz.nas /mnt/fritznas cifs vers=3.1.1,noserverino,username=xxxxxx,password=yyyyyyy,uid=1000,gid=100 0 0

Important was the noserverino

Fritzbox is not using samba V 1.0 anymore, there was a Firmware Update some time before.

Good find! I note other similar recommendations to use the same…

https://www.reddit.com/r/fritzbox/comments/l8ba0j/i_updated_my_fritz_os_and_it_broke_my_git/
http://www.daprose.de/article/linux-autofs-cifs-mount-of-fritz-box-nas

Fritzbox is not using samba V 1.0 anymore, there was a Firmware Update some time before.

That makes sense. :slight_smile:

Both links mention FRITZ!OS upgrading. In the second link it was mentioned…

In my home setup i have a FRITZ!Box 7490 serving an USB 3.0 SSD as my local NAS to be accessed by multiple different devices. Some of these are Linux laptops running an openSUSE 15.2 distribution. The NAS itself supported the SMB 1 protocol only in the past, but after upgrading to a newer FRITZ!OS i can use SMB 3 now.

However, the OP’s hardware model is too old it would seem.

Use OpenWRT:
https://openwrt.org/toh/avm/start
https://openwrt.org/toh/avm/avm_fritz_box_7360_v2

Or patch source code:
https://osp.avm.de/fritzbox/fritzbox-7360-v2/

Or
https://freetz.github.io/wiki/index.en.html