Discussion:
[Bug 1748689] [NEW] Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in smb2_get_dfs_refer rc=-2"
helm12
2018-02-11 03:02:12 UTC
Permalink
Public bug reported:

Xubuntu 17.10 artful
Kernel: x86_64 Linux 4.13.0-32.35-generic
cifs-utils 2:6.7-1
smbclient 2:4.6.7+dfsg-1ubuntu3.1

Mounting an SMB share with
sec=ntlmssp,vers=3.0,credentials=/home/.smbcredentials,dir_mode=0777,file_mode=0777

in /etc/fstab gives the error: "CIFS VFS: ioctl error in
smb2_get_dfs_refer rc=-2" in dmesg.

Shares mounted this way are readable, but writing data to them (or using
programs such as EasyTAG to write to them) ultimately fails. This bug
did not occur in kernel 4.10. Mounting the share(s) with vers=1.0 does
not give the error, but this is a haphazard fix as SMB v3.0 carries many
security features with it not avaliable in SMB 1.0.

** Affects: linux (Ubuntu)
Importance: Undecided
Status: New


** Tags: kernel-bug
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/l
helm12
2018-02-11 03:09:22 UTC
Permalink
** Description changed:

Xubuntu 17.10 artful
Kernel: x86_64 Linux 4.13.0-32.35-generic
cifs-utils 2:6.7-1
smbclient 2:4.6.7+dfsg-1ubuntu3.1

Mounting an SMB share with
sec=ntlmssp,vers=3.0,credentials=/home/.smbcredentials,dir_mode=0777,file_mode=0777

in /etc/fstab gives the error: "CIFS VFS: ioctl error in
smb2_get_dfs_refer rc=-2" in dmesg.

Shares mounted this way are readable, but writing data to them (or using
programs such as EasyTAG to write to them) ultimately fails. This bug
did not occur in kernel 4.10. Mounting the share(s) with vers=1.0 does
not give the error, but this is a haphazard fix as SMB v3.0 carries many
- security features with it.
+ security features with it not avaliable in SMB 1.0.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lis
Ubuntu Kernel Bot
2018-02-11 03:30:03 UTC
Permalink
This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:

apport-collect 1748689

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable
to run this command, please add a comment stating that fact and change
the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the
Ubuntu Kernel Team.

** Changed in: linux (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo
helm12
2018-02-12 10:36:10 UTC
Permalink
apport information

** Tags added: apport-collected artful

** Description changed:

Xubuntu 17.10 artful
Kernel: x86_64 Linux 4.13.0-32.35-generic
cifs-utils 2:6.7-1
smbclient 2:4.6.7+dfsg-1ubuntu3.1

Mounting an SMB share with
sec=ntlmssp,vers=3.0,credentials=/home/.smbcredentials,dir_mode=0777,file_mode=0777

in /etc/fstab gives the error: "CIFS VFS: ioctl error in
smb2_get_dfs_refer rc=-2" in dmesg.

- Shares mounted this way are readable, but writing data to them (or using
- programs such as EasyTAG to write to them) ultimately fails. This bug
- did not occur in kernel 4.10. Mounting the share(s) with vers=1.0 does
- not give the error, but this is a haphazard fix as SMB v3.0 carries many
- security features with it not avaliable in SMB 1.0.
+ Shares mounted this way are readable, but writing data to them (or using programs such as EasyTAG to write to them) ultimately fails. This bug did not occur in kernel 4.10. Mounting the share(s) with vers=1.0 does not give the error, but this is a haphazard fix as SMB v3.0 carries many security features with it not avaliable in SMB 1.0.
+ ---
+ ApportVersion: 2.20.7-0ubuntu3.7
+ Architecture: amd64
+ CurrentDesktop: XFCE
+ DistroRelease: Ubuntu 17.10
+ HibernationDevice: RESUME=/dev/mapper/DeusVitam--vg-swap_1
+ JournalErrors:
+ Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
+ Users in the 'systemd-journal' group can see all messages. Pass -q to
+ turn off this notice.
+ No journal files were opened due to insufficient permissions.
+ MachineType: ASUS All Series
+ Package: linux (not installed)
+ ProcFB: 0 amdgpudrmfb
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-32-generic root=/dev/mapper/hostname--vg-root ro splash quiet amdgpu.cik_support=1 vt.handoff=7
+ ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
+ RelatedPackageVersions:
+ linux-restricted-modules-4.13.0-32-generic N/A
+ linux-backports-modules-4.13.0-32-generic N/A
+ linux-firmware 1.169.3
+ RfKill:
+
+ Tags: artful
+ Uname: Linux 4.13.0-32-generic x86_64
+ UpgradeStatus: Upgraded to artful on 2018-02-05 (7 days ago)
+ UserGroups: libvirt libvirtd sudo wireshark
+ WifiSyslog:
+
+ _MarkForUpload: True
+ dmi.bios.date: 03/16/2016
+ dmi.bios.vendor: American Megatrends Inc.
+ dmi.bios.version: 0701
+ dmi.board.asset.tag: To be filled by O.E.M.
+ dmi.board.name: Z97-E/USB 3.1
+ dmi.board.vendor: ASUSTeK COMPUTER INC.
+ dmi.board.version: Rev X.0x
+ dmi.chassis.asset.tag: To Be Filled By O.E.M.
+ dmi.chassis.type: 3
+ dmi.chassis.vendor: To Be Filled By O.E.M.
+ dmi.chassis.version: To Be Filled By O.E.M.
+ dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0701:bd03/16/2016:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnZ97-E/USB3.1:rvrRevX.0x:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
+ dmi.product.family: ASUS MB
+ dmi.product.name: All Series
+ dmi.product.version: System Version
+ dmi.sys.vendor: ASUS

** Attachment added: "AlsaInfo.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053499/+files/AlsaInfo.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-
helm12
2018-02-12 10:36:12 UTC
Permalink
apport information

** Attachment added: "AudioDevicesInUse.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053500/+files/AudioDevicesInUse.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/
helm12
2018-02-12 10:36:14 UTC
Permalink
apport information

** Attachment added: "CRDA.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053501/+files/CRDA.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
ht
helm12
2018-02-12 10:36:16 UTC
Permalink
apport information

** Attachment added: "CurrentDmesg.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053502/+files/CurrentDmesg.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/u
helm12
2018-02-12 10:36:18 UTC
Permalink
apport information

** Attachment added: "IwConfig.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053503/+files/IwConfig.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bu
helm12
2018-02-12 10:36:20 UTC
Permalink
apport information

** Attachment added: "Lspci.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053504/+files/Lspci.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
helm12
2018-02-12 10:36:22 UTC
Permalink
apport information

** Attachment added: "Lsusb.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053505/+files/Lsusb.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
helm12
2018-02-12 10:36:23 UTC
Permalink
apport information

** Attachment added: "ProcCpuinfo.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053506/+files/ProcCpuinfo.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubu
helm12
2018-02-12 10:36:25 UTC
Permalink
apport information

** Attachment added: "ProcCpuinfoMinimal.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053507/+files/ProcCpuinfoMinimal.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailma
helm12
2018-02-12 10:36:27 UTC
Permalink
apport information

** Attachment added: "ProcEnviron.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053508/+files/ProcEnviron.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubu
helm12
2018-02-12 10:36:29 UTC
Permalink
apport information

** Attachment added: "ProcInterrupts.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053509/+files/ProcInterrupts.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listin
helm12
2018-02-12 10:36:31 UTC
Permalink
apport information

** Attachment added: "ProcModules.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053510/+files/ProcModules.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubu
helm12
2018-02-12 10:36:33 UTC
Permalink
apport information

** Attachment added: "PulseList.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053511/+files/PulseList.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-
helm12
2018-02-12 10:36:35 UTC
Permalink
apport information

** Attachment added: "UdevDb.txt"
https://bugs.launchpad.net/bugs/1748689/+attachment/5053512/+files/UdevDb.txt

** Changed in: linux (Ubuntu)
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/
Joseph Salisbury
2018-02-13 17:59:45 UTC
Permalink
Did this issue start happening after an update/upgrade? Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.16 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16-rc1/


** Changed in: linux (Ubuntu)
Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://li
helm12
2018-02-15 01:54:16 UTC
Permalink
It appears the issue is not occuring in 4.16-rc1

** Tags added: kernel-fixed-upstream

** Changed in: linux (Ubuntu)
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/
Dominique Ramaekers
2018-05-01 06:31:12 UTC
Permalink
I confirm on kernels 4.15.0.19 and 4.15.0.20.

***@CmsrvLAP2:~# umount /media/Cmsrv*
***@CmsrvLAP2:~# mount -l | grep cifs
***@CmsrvLAP2:~# mount -a
***@CmsrvLAP2:~# dmesg | tail
[ 5.353312] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 5.354716] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 5.358145] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 50.748155] random: crng init done
[ 61.625333] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 61.632086] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 61.652427] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 61.661496] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 61.900523] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
[ 61.909087] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
***@CmsrvLAP2:~# uname -a
Linux CmsrvLAP2 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
***@CmsrvLAP2:~# mount -l | grep cifs
//x.x.x.x/C$ on /media/CmsrvAPP2-C type cifs (rw,relatime,vers=3.0,cache=strict,username=xxx,domain=xxx.xx,uid=0,noforceuid,gid=0,noforcegid,addr=xxx,file_mode=0755,dir_mode=0755,soft,nounix,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)
...
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748689

Title:
Mounting SMB shares with vers=3.0 in fstab gives "ioctl error in
smb2_get_dfs_refer rc=-2"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman
Loading...