Cannot mount win server 2016 share using cifs module + smb vers=3.1.1

Aurélien Aptel aaptel at suse.com
Mon Aug 17 13:59:41 UTC 2015


Hi all,

I would like to capture a network trace of the dup extents fsctl to
debug/test the samba implementation I'm working on. I have a windows
server 2016 share that I'm trying to mount on a linux box using the cifs
module so I can use cp --reflink to trigger the fsctl. I've tried
several of Steve French's cifs kernel branches but I cannot mount the
share in SMB 3.1.1.

Experimental branch:

Kernel conf:
% grep CIFS .config   
CONFIG_CIFS=m
CONFIG_CIFS_STATS=y
CONFIG_CIFS_STATS2=y
CONFIG_CIFS_WEAK_PW_HASH=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_ACL=y
CONFIG_CIFS_DEBUG=y
CONFIG_CIFS_DEBUG2=y
CONFIG_CIFS_DFS_UPCALL=y
CONFIG_CIFS_SMB2=y
CONFIG_CIFS_SMB311=y
CONFIG_CIFS_FSCACHE=y

% mount.cifs //10.160.65.103/win2016_share /mnt \
   -o 'username=administrator,password=xxxxx,rw,vers=3.1.1'
[  721.975988] SMB2 server sent bad RFC1001 len 236 not 170
[  721.980738] CIFS VFS: cifs_mount failed w/return code = -11
mount error(11): Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

See attached wireshark dump failed-mount-experimental.pcapng.

Same error on Linus master branch (7ddab73):

% mount.cifs //10.160.65.103/win2016_share /mnt \
   -o 'username=administrator,password=xxxxx,rw,vers=3.1.1'
[   23.436286] SMB2 server sent bad RFC1001 len 236 not 170
[   23.444831] CIFS VFS: cifs_mount failed w/return code = -11
mount error(11): Resource temporarily unavailable

See attached wireshark dump failed-mount-master.pcapng.

In both case it errs after the tree connect request. Not sure how to
proceed.

-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG
Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: failed-mount-experimental.pcapng
Type: application/octet-stream
Size: 3592 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150817/5ab11819/failed-mount-experimental.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: failed-mount-master.pcapng
Type: application/octet-stream
Size: 3500 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150817/5ab11819/failed-mount-master.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150817/5ab11819/attachment.sig>


More information about the samba-technical mailing list