mount.cifs fails to mount DFS shares
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Since the release of the latest kernel (vmlinuz-
mount.cifs --verbose -o 'user=XXX,
Dropping back to the previous kernel (vmlinuz-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-143-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.24
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed Jun 2 16:55:59 2021
HibernationDevice: RESUME=
IwConfig:
ens160 no wireless extensions.
lo no wireless extensions.
ens192 no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.173.19
RfKill:
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/12/2018
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.
Hi Chris,
Thanks for reporting! Looking at the difference between 4.15.0-142-generic and 4.15.0-143-generic, there is one commit:
ubuntu-bionic$ git log --grep "cifs" Ubuntu- 4.15.0- 142.146. .Ubuntu- 4.15.0- 143.147 5b10715a27e252c 8af5a39a6c
commit 7dd995facbb57b3
Author: Shyam Prasad N <email address hidden>
Date: Thu Feb 11 03:26:54 2021 -0800
cifs: Set CIFS_MOUNT_ USE_PREFIX_ PATH flag on setting cifs_sb->prepath.
BugLink: https:/ /bugs.launchpad .net/bugs/ 1919380
[ Upstream commit a738c93fb1c17e3 86a09304b517b1c 6b2a6a5a8b ]
While debugging another issue today, Steve and I noticed that if a
subdir for a file share is already mounted on the client, any new
mount of any other subdir (or the file share root) of the same share
results in sharing the cifs superblock, which e.g. can result in
incorrect device name.
While setting prefix path for the root of a cifs_sb, MOUNT_USE_ PREFIX_ PATH flag should also be set.
CIFS_
Without it, prepath is not even considered in some places,
and output of "mount" and various /proc/<>/*mount* related
options can be missing part of the device name.
Signed-off-by: Shyam Prasad N <email address hidden>
Reviewed-by: Aurelien Aptel <email address hidden>
Signed-off-by: Steve French <email address hidden>
Signed-off-by: Sasha Levin <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>
This has caused problems before, in bug 1923670, where we wrote to upstream and had it reverted from upstream -stable and reverted it from our kernels.
Having a look through the git history, I see the revert actually landed in 4.15.0-144-generic, which has just landed in -updates (but not quite yet in -security).
$ git log --grep "cifs: Set CIFS_MOUNT_ USE_PREFIX_ PATH flag on setting cifs_sb->prepath." origin/master-next 1bf46a689ba4541 e4377c4b0b
commit 9f5e9a8722e0a6d
Author: Greg Kroah-Hartman <email address hidden>
Date: Mon Apr 12 09:56:57 2021 +0200
Revert "cifs: Set CIFS_MOUNT_ USE_PREFIX_ PATH flag on setting cifs_sb->prepath."
BugLink: https:/ /bugs.launchpad .net/bugs/ 1926808
This reverts commit ad48c641e7c344a e7aba243d3056a2 2eaba71bfd which is 86a09304b517b1c 6b2a6a5a8b upstream.
commit a738c93fb1c17e3
It is reported to cause problems in older kernels, so revert it for now
until we can figure it out...
Reported-by: Salvatore Bonaccorso <email address hidden>
Link: https://<email address hidden>
Cc: Shyam Prasad N <email address hidden>
Cc: Aurelien Aptel <email address hidden>
Cc: Steve French <email address hidden>
Cc: Sasha Levin <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>
$ git describe --contains 9f5e9a8722e0a6d 1bf46a689ba4541 e4377c4b0b 4.15.0- 144.148~ 25
Ubuntu-
Could you please try 4.15.0-144-generic and let me know if it fixes it for you? It should be fixed there.
Thanks,
Matthew