Re: cifs.ko + smb 3.0 + DFS fails (though direct mount succeeds)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Steve.

Given WannaCry (and its derivatives), many shops are disabling SMBv1
entirely (not necessarily a bad idea). Any idea as to when the
aforementioned fixes might be pushed downstream? I've tested Ubuntu
17.04 with the same results (DFS fails with SMB > v1).

Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED
Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
CIFS VFS: cifs_mount failed w/return code = -38

# uname -r
4.10.0-22-generic

# modinfo cifs
filename:       /lib/modules/4.10.0-22-generic/kernel/fs/cifs/cifs.ko
softdep:        pre: ccm
softdep:        pre: aead2
softdep:        pre: sha256
softdep:        pre: cmac
softdep:        pre: aes
softdep:        pre: nls
softdep:        pre: md5
softdep:        pre: md4
softdep:        pre: hmac
softdep:        pre: ecb
softdep:        pre: des
softdep:        pre: arc4
version:        2.09
description:    VFS to access servers complying with the SNIA CIFS
Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench@xxxxxxxxxx>
alias:          fs-cifs
srcversion:     2EEBCAE8D1598E85D808811
depends:        fscache
intree:         Y
vermagic:       4.10.0-22-generic SMP mod_unload
parm:           CIFSMaxBufSize:Network buffer size (not including
header). Default: 16384 Range: 8192 to 130048 (uint)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4
Range: 1 to 64 (uint)
parm:           cifs_min_small:Small network buffers in pool. Default:
30 Range: 2 to 256 (uint)
parm:           cifs_max_pending:Simultaneous requests to server.
Default: 32767 Range: 2 to 32767. (uint)
parm:           enable_oplocks:Enable or disable oplocks. Default: y/Y/1 (bool)

On Thu, Apr 20, 2017 at 3:14 PM, Steve French <smfrench@xxxxxxxxx> wrote:
> Fixes to add SMB2/SMB3 support for DFS were added fairly recently
> (about two months ago) by Aurelien, so will be in new kernels.
>
> Hopefully RedHat and other will backport these as they are quite useful.
>
> On Thu, Apr 20, 2017 at 3:09 PM, Robin Blanchard
> <robin.blanchard@xxxxxxxxx> wrote:
>> environment:
>>
>> # cat /etc/redhat-release
>> CentOS Linux release 7.3.1611 (Core)
>>
>> # uname -r
>> 3.10.0-514.16.1.el7.x86_64
>>
>> # modinfo cifs
>> filename:       /lib/modules/3.10.0-514.16.1.el7.x86_64/kernel/fs/cifs/cifs.ko
>> version:        2.08
>> description:    VFS to access servers complying with the SNIA CIFS
>> Specification e.g. Samba and Windows
>> license:        GPL
>> author:         Steve French <sfrench@xxxxxxxxxx>
>> alias:          fs-cifs
>> rhelversion:    7.3
>> srcversion:     119ACC0FE17824C08D648CE
>> depends:        dns_resolver
>> intree:         Y
>> vermagic:       3.10.0-514.16.1.el7.x86_64 SMP mod_unload modversions
>> signer:         CentOS Linux kernel signing key
>> sig_key:        3F:E1:EB:8B:4F:91:D4:84:CD:55:44:84:54:A0:24:DE:56:34:E1:06
>> sig_hashalgo:   sha256
>> parm:           CIFSMaxBufSize:Network buffer size (not including
>> header). Default: 16384 Range: 8192 to 130048 (uint)
>> parm:           cifs_min_rcv:Network buffers in pool. Default: 4
>> Range: 1 to 64 (uint)
>> parm:           cifs_min_small:Small network buffers in pool. Default:
>> 30 Range: 2 to 256 (uint)
>> parm:           cifs_max_pending:Simultaneous requests to server.
>> Default: 32767 Range: 2 to 32767. (uint)
>> parm:           enable_oplocks:Enable or disable oplocks. Default: y/Y/1 (bool)
>>
>>
>>
>> issue:
>>
>> 01) smb vers=1.0 + DFS works as expected:
>>
>> # mount -v -t cifs //my.domain/dfs/path /mnt -o
>> "ro,vers=1.0,domain=my.domain,username=silly_user"
>> # echo $?
>> 0
>>
>>
>> 02) smb vers=3.0 + DFS fails with:
>>
>> # echo 7 > /proc/fs/cifs/cifsFYI ; mount -v -t cifs
>> //my.domain/dfs/path /mnt -o
>> "ro,vers=3.0,domain=my.domain,username=silly_user"; sleep 5 ; echo 0 >
>> /proc/fs/cifs/cifsFYI ; dmesg |tail -3
>>
>> mount error(38): Function not implemented
>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
>> [273116.707979] Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED
>> [273116.712186] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
>> [273116.713723] CIFS VFS: cifs_mount failed w/return code = -38
>>
>>
>> 03) smb vers=3.0 w/o CFS works as expected
>>
>> # mount -v -t cifs //real.win2k12.server/non-dfs/path /mnt -o
>> "ro,vers=3.0,domain=my.domain,username=silly_user
>> # echo $?
>> 0
>>
>>
>>
>> Is there another incantation of mount -t cifs to get smbv3 + DFS
>> working? Or is this a known issue (and if so, is there a work-around)
>> ?
>>
>> Thanks in advance!
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Thanks,
>
> Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux