FS#78558 - [kernel][cifs] Failure to monut CIFS v1 shares

Attached to Project: Arch Linux
Opened by hotice (hotice) - Saturday, 20 May 2023, 07:14 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 31 May 2023, 22:45 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Kernel 6.3.2 failure to mount external samba cifs v1 shares


Additional info:

Failure to mount old external Windows smb shares v1 (either from fstab or manually).

Affected arch kernels: linux-6.3.2-arch1-1 (64-bit)

Latest working version of arch kernel is linux-6.3.1-arch1-1 (64-bit). Works in fstab without smb.conf file.


Steps to reproduce:

sudo mount -t cifs //pc/share /tmp/share -o vers=1.0,cred=/etc/samba/.cred/share
mount error(5): Input/output error

Related: same fstab setup as in https://bugs.archlinux.org/task/76939

Kernel quality just build back better)
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 31 May 2023, 22:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 6.3.5.arch1-1
Comment by hotice (hotice) - Saturday, 20 May 2023, 07:32 GMT
Latest working version of arch kernel is linux-6.3.1-arch2-1, so
temp workaround: downgrade linux 6.3.2 > 6.3.1 works.

Syslog module CIFS VFS: cifs_mount failed w/return code = -5
Comment by H.Janssen (hmmsjan) - Saturday, 20 May 2023, 11:00 GMT
The problem is introduced in Fedora since 6.2.15.

A samba debug-3 on the server reveals that the server responds with "not a dfs root"
and the connection closes. In previous versions, this was not a fatal answer.

Workaround: add "nodfs" behind vers=1.0, then it works again.


get_referred_path: |hj| in dfs path \nslu\hj is not a dfs root.
error packet at smbd/trans2.c(8481) cmd=50 (SMBtrans2) NT_STATUS_NOT_FOUND
Transaction 5 of length 43 (0 toread)
switch message SMBulogoffX (pid 710) conn 0x0
ulogoffX vuid=100
amd (192.168.1.2) closed connection to service IPC$
Yielding connection to IPC$
Server exit (failed to receive smb request)
Terminated
Comment by loqs (loqs) - Saturday, 20 May 2023, 11:20 GMT Comment by hotice (hotice) - Saturday, 20 May 2023, 19:21 GMT
@hmmsjan Thank you, adding 'nodfs' option works!

@loqs So should we take adding this extra option as a long-term solution or a bug as samba version 1 is explicitly stated thus support for MS DFS shouldn't be expected?
Comment by loqs (loqs) - Saturday, 20 May 2023, 19:31 GMT
@hotice I think you should ask upstream on either the kernel bugzilla product File System Component CIFS or linux-cifs mailing list if this was intended to be a breaking change in the kernel.
Comment by hotice (hotice) - Wednesday, 24 May 2023, 11:35 GMT
Maybe the best for now is just to add that extra cifs mounting option into arch wiki.
Comment by Toolybird (Toolybird) - Wednesday, 31 May 2023, 00:09 GMT Comment by hotice (hotice) - Wednesday, 31 May 2023, 09:59 GMT
Yes, fixed in 6.3.5-arch1-1. No extra mount options needed. Can be closed; on hold for a third CIFS bug within a year )

Loading...