Discussion:
mount.cifs question: mounting a cifs share located on an IBM z/OS mainframe to a linux machine
Nadezhda Ivanova
2014-04-09 09:22:38 UTC
Permalink
Hi guys,
Has anyone successfully mounted a cifs share from a z/OS mainframe to
a linux machine?
We have a partner who is trying to do that, but the mount fails with a
Input/Output error. The same share is successfully mounted to a
Windows 7 or a Mac. The attached wireshark captures seem to show that
the z/OS returns a malformed Protocol Negotiation request to the
mount.cifs, but returns a correct packet to the Windows machine.
The user is running an Ububtu 12.04 TLS, kernel version 3.11.0-19-generic.
Also tried Ubuntu 10.04 and Centos6.5 with identical results.
The server is a z/OS 1.13

Here are the commands we tried:

***@cnaf-app-00:~# mount --verbose -t cifs //192.182.1.212/samba
/media/samba -o username=mreeves%amoscat0,sec=ntlm
mount.cifs kernel mount options:
ip=192.168.1.212,unc=//192.168.1.212/samba,sec=ntlm,ver=1,user=mreeves,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
***@cnaf-app-00:~# mount --verbose -t cifs //192.182.1.212/samba
/media/samba -o username=mreeves%amoscat0,sec=NTLMv2
mount.cifs kernel mount options:
ip=192.168.1.212,unc=//192.168.1.212/samba,sec=NTLMv2,ver=1,user=mreeves,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
***@cnaf-app-00:~# mount --verbose -t cifs //192.168.1.212/samba
/media/samba -o username=mreeves%amoscat0,sec=lanman
mount.cifs kernel mount options:
ip=192.168.1.212,unc=//192.168.1.212/samba,sec=lanman,ver=1,user=mreeves,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

smbclient appears to work, but we get some garbage:
***@cnaf-app-00:/etc/samba# smbclient //192.168.1.212/samba -U
mreeves%amoscat0
Domain=[■£Ç■╝Ç■êÇ■ŒÇ■£Ç■êÇ■╝Ç■
öÇ■ÇÇ]
OS=[■îÇ■╝Ç■îÇ■ñÇ■ÇÇ■ÇÇ■ÿÇ■êÇ■êÇ■áÇ■─Ç■ÇÇ]
Server=[■ñÇ■êÇ■─Ç■ÇÇ■îÇ°öDZêDZÿÇ°öDZêÇ■ÇÇ°ÿÇ°╝DZêÇ■ÇÇ■£Ç°ñÇ°╕Ç°ÉÇ°╝DZ£Ç±îÇ■ÇÇ■╕Ç°öDZÉDZ£Ç°╝DZêÇ°ŒÇ■ÇÇ■╕Ç°öÇ°ñÇ°£Ç°áÇ°êÇ°╝DZêÇ°áÇ°╝Ç°╝Ç°ÉÇ]
smb: \> ls
. D 0 Thu Apr 3 06:43:17 2014
.. D 0 Thu Apr 3 06:43:17 2014
._.DS_Store 4096 Thu Apr 3 06:43:17 2014
.DS_Store 6148 Thu Apr 3 06:43:39 2014
shellscript.txt 3260 Wed Apr 2 19:09:53 2014
65535 blocks of size 32768. 65535 blocks available
smb: \>
The following appears in the logs:

Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.808997] CIFS VFS:
RFC1001 size 84 smaller than SMB for mid=1
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809034] Bad SMB: : dump
of 48 bytes of data at 0xffff880019744540
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809037] 54000000
424d53ff 00000072 c8018000 . . . T ˇ S M B r . . . . . . »
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809039] 00000000
00000000 00000000 0e260000 . . . . . . . . . . . . . . & .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809041] 00010000
03000211 00010032 0000ffff . . . . . . . . 2 . . . ˇ ˇ . .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809107] CIFS VFS:
cifs_mount failed w/return code = -5

This is the z/OS machine configuration:

_IOE_DFS_MODIFY_PATH=/opt/dfslocal/home/dfscntl/modify.rendezvous
_IOE_MVS_DFSDFLT=EMCROOT
_IOE_LFS_SYNC_INTERVAL=30
_IOE_SMB_CLEAR_PW=NOTALLOWED
_IOE_DYNAMIC_EXPORT=ON
_IOE_SMB_TRANSPORTS=BOTH
_IOE_SMB_CONNECT_MSGS=2
_IOE_SERVER_NAME=EMCZPDT1
_IOE_SMB_COMPUTER_NAME=EMCZPDT1
_IOE_SMB_DOMAIN_NAME=WORKGROUP
_IOE_SMB_IDMAP=/opt/dfslocal/home/dfskern/smbidmap
_IOE_PROTOCOL_SMB=ON
_IOE_WIRE_CODEPAGE=ISO8859-1
_EUV_SVC_MSG_LOGGING=CONSOLE_LOGGING
DCE_START_SOCKET_NAME=/opt/dfslocal/home/dfscntl/ioepk.soc
TZ=EST5EDT
_EUV_AUTOLOG=NO
#NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/En_US/%N
NLSPATH=/usr/lib/nls/msg/%L/%N
LANG=En_US.IBM-1047
#LIBPATH=/usr/lib:/usr/lpp/Printsrv/lib
LIBPATH=/usr/lib
_IOE_SMB_OCSF=OFF

I am attaching wireshark captures of both the successful mount from a
windows machine and the failed one from the linux machine.

After my initial mail on the samba-technical list, I was contacted by
someone in an identical situation who has also been unable to access
their z/OS shares after switching to RHEL 6.x from Windows, so I
guess this is not an isolated incident.

If anyone has experience with this and has any ideas, any possible
problems with the configuration, I would appreciate it!

Best Regards,
Nadezhda
Jeff Layton
2014-04-09 19:38:07 UTC
Permalink
On Wed, 9 Apr 2014 12:22:38 +0300
Post by Nadezhda Ivanova
Hi guys,
Has anyone successfully mounted a cifs share from a z/OS mainframe to
a linux machine?
We have a partner who is trying to do that, but the mount fails with =
a
Post by Nadezhda Ivanova
Input/Output error. The same share is successfully mounted to a
Windows 7 or a Mac. The attached wireshark captures seem to show that
the z/OS returns a malformed Protocol Negotiation request to the
mount.cifs, but returns a correct packet to the Windows machine.
The user is running an Ububtu 12.04 TLS, kernel version 3.11.0-19-gen=
eric.
Post by Nadezhda Ivanova
Also tried Ubuntu 10.04 and Centos6.5 with identical results.
The server is a z/OS 1.13
=20
=20
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dntlm
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3Dntlm,ver=3D1,use=
r=3Dmreeves,pass=3D********
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3DNTLMv2
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3DNTLMv2,ver=3D1,u=
ser=3Dmreeves,pass=3D********
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dlanman
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3Dlanman,ver=3D1,u=
ser=3Dmreeves,pass=3D********
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
=20
mreeves%amoscat0
Domain=3D[=E2=96=A0=C2=A3=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=AA=
=C3=87=E2=96=A0=C2=BC=C3=87=E2=96=A0=C2=A3=C3=87=E2=96=A0=C3=AA=C3=87=E2=
=96=A0=E2=95=9D=C3=87=E2=96=A0
Post by Nadezhda Ivanova
=C3=B6=C3=87=E2=96=A0=C3=87=C3=87]
OS=3D[=E2=96=A0=C3=AE=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=AE=C3=
=87=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=87=C3=87=E2=96=
=A0=C3=BF=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=A1=
=C3=87=E2=96=A0=E2=94=A4=C3=87=E2=96=A0=C3=87=C3=87]
Post by Nadezhda Ivanova
Server=3D[=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=E2=94=
=A4=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=AE=C3=87=C2=B0=C3=B6=C3=87=C2=
=B1=C3=AA=C3=87=C2=B1=C3=BF=C3=87=C2=B0=C3=B6=C3=87=C2=B1=C3=AA=C3=87=E2=
=96=A0=C3=87=C3=87=C2=B0=C3=BF=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=
=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C2=A3=C3=87=C2=B0=C3=B1=C3=87=C2=B0=E2=
=95=95=C3=87=C2=B0=C3=89=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C2=A3=C3=87=C2=
=B1=C3=AE=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=C2=B0=C3=B6=
=C3=87=C2=B1=C3=89=C3=87=C2=B1=C2=A3=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=
=AA=C3=87=C2=B0=C2=BC=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=
=C2=B0=C3=B6=C3=87=C2=B0=C3=B1=C3=87=C2=B0=C2=A3=C3=87=C2=B0=C3=A1=C3=87=
=C2=B0=C3=AA=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=87=C2=B0=C3=A1=C3=
=87=C2=B0=E2=95=9D=C3=87=C2=B0=E2=95=9D=C3=87=C2=B0=C3=89=C3=87]
Post by Nadezhda Ivanova
smb: \> ls
. D 0 Thu Apr 3 06:43:17=
2014
Post by Nadezhda Ivanova
.. D 0 Thu Apr 3 06:43:17=
2014
Post by Nadezhda Ivanova
._.DS_Store 4096 Thu Apr 3 06:43:17=
2014
Post by Nadezhda Ivanova
.DS_Store 6148 Thu Apr 3 06:43:39=
2014
Post by Nadezhda Ivanova
shellscript.txt 3260 Wed Apr 2 19:09:53=
2014
Post by Nadezhda Ivanova
65535 blocks of size 32768. 65535 blocks available
smb: \>
=20
=20
=20
RFC1001 size 84 smaller than SMB for mid=3D1
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809034] Bad SMB: : dump
of 48 bytes of data at 0xffff880019744540
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809037] 54000000
424d53ff 00000072 c8018000 . . . T =CB=87 S M B r . . . . . . =C2=BB
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809039] 00000000
00000000 00000000 0e260000 . . . . . . . . . . . . . . & .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809041] 00010000
03000211 00010032 0000ffff . . . . . . . . 2 . . . =CB=87 =CB=87 . .
cifs_mount failed w/return code =3D -5
=20
=20
_IOE_DFS_MODIFY_PATH=3D/opt/dfslocal/home/dfscntl/modify.rendezvous
_IOE_MVS_DFSDFLT=3DEMCROOT
_IOE_LFS_SYNC_INTERVAL=3D30
_IOE_SMB_CLEAR_PW=3DNOTALLOWED
_IOE_DYNAMIC_EXPORT=3DON
_IOE_SMB_TRANSPORTS=3DBOTH
_IOE_SMB_CONNECT_MSGS=3D2
_IOE_SERVER_NAME=3DEMCZPDT1
_IOE_SMB_COMPUTER_NAME=3DEMCZPDT1
_IOE_SMB_DOMAIN_NAME=3DWORKGROUP
_IOE_SMB_IDMAP=3D/opt/dfslocal/home/dfskern/smbidmap
_IOE_PROTOCOL_SMB=3DON
_IOE_WIRE_CODEPAGE=3DISO8859-1
_EUV_SVC_MSG_LOGGING=3DCONSOLE_LOGGING
DCE_START_SOCKET_NAME=3D/opt/dfslocal/home/dfscntl/ioepk.soc
TZ=3DEST5EDT
_EUV_AUTOLOG=3DNO
#NLSPATH=3D/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/En_US/%N
NLSPATH=3D/usr/lib/nls/msg/%L/%N
LANG=3DEn_US.IBM-1047
#LIBPATH=3D/usr/lib:/usr/lpp/Printsrv/lib
LIBPATH=3D/usr/lib
_IOE_SMB_OCSF=3DOFF
=20
I am attaching wireshark captures of both the successful mount from a
windows machine and the failed one from the linux machine.
=20
After my initial mail on the samba-technical list, I was contacted by
someone in an identical situation who has also been unable to access
their z/OS shares after switching to RHEL 6.x from Windows, so I
guess this is not an isolated incident.
=20
If anyone has experience with this and has any ideas, any possible
problems with the configuration, I would appreciate it!
=20
Best Regards,
Nadezhda
Hi Nadezhda!

This server just looks to be broken.

The server claims to support unicode according to the capability bits
and then sends an ASCII string in the Primary Domain field in the
windows capture -- that's just wrong AFAIK.

In the linux capture, that field is these bytes:

00 ff 53 4d 42 25 00

=2E..which is also not proper unicode. Even worse, it starts with a NUL=
L,
and then follows with the standard SMB protocol header. Looks maybe
they have some sort of alignment problem there and a trailing SMB got
tacked on to the end of this one. Nasty!

They should really talk to their server vendor ;)

--=20
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
Nadezhda Ivanova
2014-04-09 20:05:27 UTC
Permalink
Hi Jeff,
Thanks for the answer!
I agree that something is broken with the server. However, since the
server sends correct packets to Windows and Mac (as evidenced by the
other capture), I thought there may be something in the linux client
that exposes a hidden bug on the server, and there may be a
workaround, and someone among the experienced CIFS masters might have
heard of it :).

I may try and find out what that is when I have time...



Regards,

Nadya
Post by Jeff Layton
On Wed, 9 Apr 2014 12:22:38 +0300
Post by Nadezhda Ivanova
Hi guys,
Has anyone successfully mounted a cifs share from a z/OS mainframe t=
o
Post by Jeff Layton
Post by Nadezhda Ivanova
a linux machine?
We have a partner who is trying to do that, but the mount fails with=
a
Post by Jeff Layton
Post by Nadezhda Ivanova
Input/Output error. The same share is successfully mounted to a
Windows 7 or a Mac. The attached wireshark captures seem to show tha=
t
Post by Jeff Layton
Post by Nadezhda Ivanova
the z/OS returns a malformed Protocol Negotiation request to the
mount.cifs, but returns a correct packet to the Windows machine.
The user is running an Ububtu 12.04 TLS, kernel version 3.11.0-19-ge=
neric.
Post by Jeff Layton
Post by Nadezhda Ivanova
Also tried Ubuntu 10.04 and Centos6.5 with identical results.
The server is a z/OS 1.13
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dntlm
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3Dntlm,ver=3D1,us=
er=3Dmreeves,pass=3D********
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3DNTLMv2
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3DNTLMv2,ver=3D1,=
user=3Dmreeves,pass=3D********
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dlanman
ip=3D192.168.1.212,unc=3D//192.168.1.212/samba,sec=3Dlanman,ver=3D1,=
user=3Dmreeves,pass=3D********
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mreeves%amoscat0
Domain=3D[=E2=96=A0=C2=A3=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=AA=
=C3=87=E2=96=A0=C2=BC=C3=87=E2=96=A0=C2=A3=C3=87=E2=96=A0=C3=AA=C3=87=E2=
=96=A0=E2=95=9D=C3=87=E2=96=A0
Post by Jeff Layton
Post by Nadezhda Ivanova
=C3=B6=C3=87=E2=96=A0=C3=87=C3=87]
OS=3D[=E2=96=A0=C3=AE=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=AE=
=C3=87=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=87=C3=87=E2=
=96=A0=C3=BF=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=
=A1=C3=87=E2=96=A0=E2=94=A4=C3=87=E2=96=A0=C3=87=C3=87]
Post by Jeff Layton
Post by Nadezhda Ivanova
Server=3D[=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=E2=94=
=A4=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=AE=C3=87=C2=B0=C3=B6=C3=87=C2=
=B1=C3=AA=C3=87=C2=B1=C3=BF=C3=87=C2=B0=C3=B6=C3=87=C2=B1=C3=AA=C3=87=E2=
=96=A0=C3=87=C3=87=C2=B0=C3=BF=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=
=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C2=A3=C3=87=C2=B0=C3=B1=C3=87=C2=B0=E2=
=95=95=C3=87=C2=B0=C3=89=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C2=A3=C3=87=C2=
=B1=C3=AE=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=C2=B0=C3=B6=
=C3=87=C2=B1=C3=89=C3=87=C2=B1=C2=A3=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=
=AA=C3=87=C2=B0=C2=BC=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=
=C2=B0=C3=B6=C3=87=C2=B0=C3=B1=C3=87=C2=B0=C2=A3=C3=87=C2=B0=C3=A1=C3=87=
=C2=B0=C3=AA=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=87=C2=B0=C3=A1=C3=
=87=C2=B0=E2=95=9D=C3=87=C2=B0=E2=95=9D=C3=87=C2=B0=C3=89=C3=87]
Post by Jeff Layton
Post by Nadezhda Ivanova
smb: \> ls
. D 0 Thu Apr 3 06:43:1=
7 2014
Post by Jeff Layton
Post by Nadezhda Ivanova
.. D 0 Thu Apr 3 06:43:1=
7 2014
Post by Jeff Layton
Post by Nadezhda Ivanova
._.DS_Store 4096 Thu Apr 3 06:43:1=
7 2014
Post by Jeff Layton
Post by Nadezhda Ivanova
.DS_Store 6148 Thu Apr 3 06:43:3=
9 2014
Post by Jeff Layton
Post by Nadezhda Ivanova
shellscript.txt 3260 Wed Apr 2 19:09:5=
3 2014
Post by Jeff Layton
Post by Nadezhda Ivanova
65535 blocks of size 32768. 65535 blocks available
smb: \>
RFC1001 size 84 smaller than SMB for mid=3D1
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809034] Bad SMB: : dum=
p
Post by Jeff Layton
Post by Nadezhda Ivanova
of 48 bytes of data at 0xffff880019744540
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809037] 54000000
424d53ff 00000072 c8018000 . . . T =CB=87 S M B r . . . . . . =C2=BB
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809039] 00000000
00000000 00000000 0e260000 . . . . . . . . . . . . . . & .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809041] 00010000
03000211 00010032 0000ffff . . . . . . . . 2 . . . =CB=87 =CB=87 . .
cifs_mount failed w/return code =3D -5
_IOE_DFS_MODIFY_PATH=3D/opt/dfslocal/home/dfscntl/modify.rendezvous
_IOE_MVS_DFSDFLT=3DEMCROOT
_IOE_LFS_SYNC_INTERVAL=3D30
_IOE_SMB_CLEAR_PW=3DNOTALLOWED
_IOE_DYNAMIC_EXPORT=3DON
_IOE_SMB_TRANSPORTS=3DBOTH
_IOE_SMB_CONNECT_MSGS=3D2
_IOE_SERVER_NAME=3DEMCZPDT1
_IOE_SMB_COMPUTER_NAME=3DEMCZPDT1
_IOE_SMB_DOMAIN_NAME=3DWORKGROUP
_IOE_SMB_IDMAP=3D/opt/dfslocal/home/dfskern/smbidmap
_IOE_PROTOCOL_SMB=3DON
_IOE_WIRE_CODEPAGE=3DISO8859-1
_EUV_SVC_MSG_LOGGING=3DCONSOLE_LOGGING
DCE_START_SOCKET_NAME=3D/opt/dfslocal/home/dfscntl/ioepk.soc
TZ=3DEST5EDT
_EUV_AUTOLOG=3DNO
#NLSPATH=3D/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/En_US/%N
NLSPATH=3D/usr/lib/nls/msg/%L/%N
LANG=3DEn_US.IBM-1047
#LIBPATH=3D/usr/lib:/usr/lpp/Printsrv/lib
LIBPATH=3D/usr/lib
_IOE_SMB_OCSF=3DOFF
I am attaching wireshark captures of both the successful mount from =
a
Post by Jeff Layton
Post by Nadezhda Ivanova
windows machine and the failed one from the linux machine.
After my initial mail on the samba-technical list, I was contacted b=
y
Post by Jeff Layton
Post by Nadezhda Ivanova
someone in an identical situation who has also been unable to access
their z/OS shares after switching to RHEL 6.x from Windows, so I
guess this is not an isolated incident.
If anyone has experience with this and has any ideas, any possible
problems with the configuration, I would appreciate it!
Best Regards,
Nadezhda
Hi Nadezhda!
This server just looks to be broken.
The server claims to support unicode according to the capability bits
and then sends an ASCII string in the Primary Domain field in the
windows capture -- that's just wrong AFAIK.
00 ff 53 4d 42 25 00
...which is also not proper unicode. Even worse, it starts with a NUL=
L,
Post by Jeff Layton
and then follows with the standard SMB protocol header. Looks maybe
they have some sort of alignment problem there and a trailing SMB got
tacked on to the end of this one. Nasty!
They should really talk to their server vendor ;)
--
Jeff Layton
2014-04-09 20:27:39 UTC
Permalink
On Wed, 9 Apr 2014 23:04:20 +0300
Post by Nadezhda Ivanova
Hi Jeff,
Thanks for the answer!
I agree that something is broken with the server. However, since the =
server
Post by Nadezhda Ivanova
sends correct packets to Windows and Mac (as evidenced by the other
capture), I thought there may be something in the linux client that e=
xposes
Post by Nadezhda Ivanova
a hidden bug on the server, and there may be a workaround, and someon=
e
Post by Nadezhda Ivanova
among the experienced CIFS masters might have heard of it :).
=20
I may try and find out what that is when I have time...
They're not correct packets, unfortunately, it's just that Windows and
Macs are less strict about checking of frame lengths than the linux
client is.

The problem in your case is coming from the checkSMB function, which
verifies that the lengths in the packet match up. In this case, the
RFC1001 length at the start of the frame is shorter than the the length
we get back from smbCalcSize (which totals up the header length, word
count and byte count).

In point of fact, it looks like the BCC is where things are broken. It
says that it's 18 bytes, but the frame ends 15 bytes later. If we ended
up trusting the BCC in that frame then we'd quite possibly end up
walking off the end of the packet. Since cifs.ko lives in the kernel,
we're a bit paranoid about buffer overruns. ;)

You can relax the checks in there (at your own risk!) but I don't think
we'd be amenable to any patches that do so in the mainline kernel.
Post by Nadezhda Ivanova
=20
=20
Regards,
=20
Nadya
=20
=20
=20
Post by Jeff Layton
On Wed, 9 Apr 2014 12:22:38 +0300
Post by Nadezhda Ivanova
Hi guys,
Has anyone successfully mounted a cifs share from a z/OS mainfram=
e to
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
a linux machine?
We have a partner who is trying to do that, but the mount fails w=
ith a
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
Input/Output error. The same share is successfully mounted to a
Windows 7 or a Mac. The attached wireshark captures seem to show =
that
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
the z/OS returns a malformed Protocol Negotiation request to the
mount.cifs, but returns a correct packet to the Windows machine.
The user is running an Ububtu 12.04 TLS, kernel version
3.11.0-19-generic.
Post by Nadezhda Ivanova
Also tried Ubuntu 10.04 and Centos6.5 with identical results.
The server is a z/OS 1.13
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dntlm
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3Dntlm,ver=3D1,user=3Dmreeves,pass=3D******=
**
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3DNTLMv2
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3DNTLMv2,ver=3D1,user=3Dmreeves,pass=3D****=
****
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dlanman
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3Dlanman,ver=3D1,user=3Dmreeves,pass=3D****=
****
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mreeves%amoscat0
Domain=3D[=E2=96=A0=C2=A3=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=
=AA=C3=87=E2=96=A0=C2=BC=C3=87=E2=96=A0=C2=A3=C3=87=E2=96=A0=C3=AA=C3=87=
=E2=96=A0=E2=95=9D=C3=87=E2=96=A0
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
=C3=B6=C3=87=E2=96=A0=C3=87=C3=87]
OS=3D[=E2=96=A0=C3=AE=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=
=AE=C3=87=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=87=C3=87=
=E2=96=A0=C3=BF=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=
=C3=A1=C3=87=E2=96=A0=E2=94=A4=C3=87=E2=96=A0=C3=87=C3=87]
Post by Nadezhda Ivanova
Post by Jeff Layton
Server=3D[=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=E2=94=
=A4=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=AE=C3=87=C2=B0=C3=B6=C3=87=C2=
=B1=C3=AA=C3=87=C2=B1=C3=BF=C3=87=C2=B0=C3=B6=C3=87=C2=B1=C3=AA=C3=87=E2=
=96=A0=C3=87=C3=87=C2=B0=C3=BF=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=
=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C2=A3=C3=87=C2=B0=C3=B1=C3=87=C2=B0=E2=
=95=95=C3=87=C2=B0=C3=89=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C2=A3=C3=87=C2=
=B1=C3=AE=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=C2=B0=C3=B6=
=C3=87=C2=B1=C3=89=C3=87=C2=B1=C2=A3=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=
=AA=C3=87=C2=B0=C2=BC=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=
=C2=B0=C3=B6=C3=87=C2=B0=C3=B1=C3=87=C2=B0=C2=A3=C3=87=C2=B0=C3=A1=C3=87=
=C2=B0=C3=AA=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=87=C2=B0=C3=A1=C3=
=87=C2=B0=E2=95=9D=C3=87=C2=B0=E2=95=9D=C3=87=C2=B0=C3=89=C3=87]
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
smb: \> ls
. D 0 Thu Apr 3 06:4=
3:17
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
.. D 0 Thu Apr 3 06:4=
3:17
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
._.DS_Store 4096 Thu Apr 3 06:4=
3:17
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
.DS_Store 6148 Thu Apr 3 06:4=
3:39
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
shellscript.txt 3260 Wed Apr 2 19:0=
9:53
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
65535 blocks of size 32768. 65535 blocks available
smb: \>
RFC1001 size 84 smaller than SMB for mid=3D1
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809034] Bad SMB: : =
dump
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
of 48 bytes of data at 0xffff880019744540
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809037] 54000000
424d53ff 00000072 c8018000 . . . T =CB=87 S M B r . . . . . . =C2=
=BB
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809039] 00000000
00000000 00000000 0e260000 . . . . . . . . . . . . . . & .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809041] 00010000
03000211 00010032 0000ffff . . . . . . . . 2 . . . =CB=87 =CB=87 =
=2E .
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
cifs_mount failed w/return code =3D -5
_IOE_DFS_MODIFY_PATH=3D/opt/dfslocal/home/dfscntl/modify.rendezvo=
us
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
_IOE_MVS_DFSDFLT=3DEMCROOT
_IOE_LFS_SYNC_INTERVAL=3D30
_IOE_SMB_CLEAR_PW=3DNOTALLOWED
_IOE_DYNAMIC_EXPORT=3DON
_IOE_SMB_TRANSPORTS=3DBOTH
_IOE_SMB_CONNECT_MSGS=3D2
_IOE_SERVER_NAME=3DEMCZPDT1
_IOE_SMB_COMPUTER_NAME=3DEMCZPDT1
_IOE_SMB_DOMAIN_NAME=3DWORKGROUP
_IOE_SMB_IDMAP=3D/opt/dfslocal/home/dfskern/smbidmap
_IOE_PROTOCOL_SMB=3DON
_IOE_WIRE_CODEPAGE=3DISO8859-1
_EUV_SVC_MSG_LOGGING=3DCONSOLE_LOGGING
DCE_START_SOCKET_NAME=3D/opt/dfslocal/home/dfscntl/ioepk.soc
TZ=3DEST5EDT
_EUV_AUTOLOG=3DNO
#NLSPATH=3D/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/En_US/%N
NLSPATH=3D/usr/lib/nls/msg/%L/%N
LANG=3DEn_US.IBM-1047
#LIBPATH=3D/usr/lib:/usr/lpp/Printsrv/lib
LIBPATH=3D/usr/lib
_IOE_SMB_OCSF=3DOFF
I am attaching wireshark captures of both the successful mount fr=
om a
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
windows machine and the failed one from the linux machine.
After my initial mail on the samba-technical list, I was contacte=
d by
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
someone in an identical situation who has also been unable to acc=
ess
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
their z/OS shares after switching to RHEL 6.x from Windows, so I
guess this is not an isolated incident.
If anyone has experience with this and has any ideas, any possibl=
e
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
problems with the configuration, I would appreciate it!
Best Regards,
Nadezhda
Hi Nadezhda!
This server just looks to be broken.
The server claims to support unicode according to the capability bi=
ts
Post by Nadezhda Ivanova
Post by Jeff Layton
and then sends an ASCII string in the Primary Domain field in the
windows capture -- that's just wrong AFAIK.
00 ff 53 4d 42 25 00
...which is also not proper unicode. Even worse, it starts with a N=
ULL,
Post by Nadezhda Ivanova
Post by Jeff Layton
and then follows with the standard SMB protocol header. Looks maybe
they have some sort of alignment problem there and a trailing SMB g=
ot
Post by Nadezhda Ivanova
Post by Jeff Layton
tacked on to the end of this one. Nasty!
They should really talk to their server vendor ;)
--
--=20
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
Nadezhda Ivanova
2014-04-10 17:41:02 UTC
Permalink
Hi Jeff,
Thank you for the detailed explanation! The stricter checking makes
sense to me now.
Can you tell me what is wrong with the Protocol Negotiation response
returned to the windows client (the win_cifs.cap)? I thought it was
correct, as it has indeed 18 bytes after bcc, and you can see that the
primary domain is WORKGROUP, obviously I am missing something...

Regards,
Nadya
Post by Jeff Layton
On Wed, 9 Apr 2014 23:04:20 +0300
Post by Nadezhda Ivanova
Hi Jeff,
Thanks for the answer!
I agree that something is broken with the server. However, since the=
server
Post by Jeff Layton
Post by Nadezhda Ivanova
sends correct packets to Windows and Mac (as evidenced by the other
capture), I thought there may be something in the linux client that =
exposes
Post by Jeff Layton
Post by Nadezhda Ivanova
a hidden bug on the server, and there may be a workaround, and someo=
ne
Post by Jeff Layton
Post by Nadezhda Ivanova
among the experienced CIFS masters might have heard of it :).
I may try and find out what that is when I have time...
They're not correct packets, unfortunately, it's just that Windows an=
d
Post by Jeff Layton
Macs are less strict about checking of frame lengths than the linux
client is.
The problem in your case is coming from the checkSMB function, which
verifies that the lengths in the packet match up. In this case, the
RFC1001 length at the start of the frame is shorter than the the leng=
th
Post by Jeff Layton
we get back from smbCalcSize (which totals up the header length, word
count and byte count).
In point of fact, it looks like the BCC is where things are broken. I=
t
Post by Jeff Layton
says that it's 18 bytes, but the frame ends 15 bytes later. If we end=
ed
Post by Jeff Layton
up trusting the BCC in that frame then we'd quite possibly end up
walking off the end of the packet. Since cifs.ko lives in the kernel,
we're a bit paranoid about buffer overruns. ;)
You can relax the checks in there (at your own risk!) but I don't thi=
nk
Post by Jeff Layton
we'd be amenable to any patches that do so in the mainline kernel.
Post by Nadezhda Ivanova
Regards,
Nadya
Post by Jeff Layton
On Wed, 9 Apr 2014 12:22:38 +0300
Post by Nadezhda Ivanova
Hi guys,
Has anyone successfully mounted a cifs share from a z/OS mainfra=
me to
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
a linux machine?
We have a partner who is trying to do that, but the mount fails =
with a
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
Input/Output error. The same share is successfully mounted to a
Windows 7 or a Mac. The attached wireshark captures seem to show=
that
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
the z/OS returns a malformed Protocol Negotiation request to the
mount.cifs, but returns a correct packet to the Windows machine.
The user is running an Ububtu 12.04 TLS, kernel version
3.11.0-19-generic.
Post by Nadezhda Ivanova
Also tried Ubuntu 10.04 and Centos6.5 with identical results.
The server is a z/OS 1.13
a
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dntlm
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3Dntlm,ver=3D1,user=3Dmreeves,pass=3D*****=
***
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
a
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
/media/samba -o username=3Dmreeves%amoscat0,sec=3DNTLMv2
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3DNTLMv2,ver=3D1,user=3Dmreeves,pass=3D***=
*****
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
a
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
/media/samba -o username=3Dmreeves%amoscat0,sec=3Dlanman
ip=3D192.168.1.212,unc=3D//
192.168.1.212/samba,sec=3Dlanman,ver=3D1,user=3Dmreeves,pass=3D***=
*****
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mreeves%amoscat0
Domain=3D[=E2=96=A0=C2=A3=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=
=C3=AA=C3=87=E2=96=A0=C2=BC=C3=87=E2=96=A0=C2=A3=C3=87=E2=96=A0=C3=AA=C3=
=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
=C3=B6=C3=87=E2=96=A0=C3=87=C3=87]
OS=3D[=E2=96=A0=C3=AE=C3=87=E2=96=A0=E2=95=9D=C3=87=E2=96=A0=C3=
=AE=C3=87=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=87=C3=87=
=E2=96=A0=C3=BF=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=
=C3=A1=C3=87=E2=96=A0=E2=94=A4=C3=87=E2=96=A0=C3=87=C3=87]
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Server=3D[=E2=96=A0=C3=B1=C3=87=E2=96=A0=C3=AA=C3=87=E2=96=A0=E2=94=
=A4=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C3=AE=C3=87=C2=B0=C3=B6=C3=87=C2=
=B1=C3=AA=C3=87=C2=B1=C3=BF=C3=87=C2=B0=C3=B6=C3=87=C2=B1=C3=AA=C3=87=E2=
=96=A0=C3=87=C3=87=C2=B0=C3=BF=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=
=87=E2=96=A0=C3=87=C3=87=E2=96=A0=C2=A3=C3=87=C2=B0=C3=B1=C3=87=C2=B0=E2=
=95=95=C3=87=C2=B0=C3=89=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C2=A3=C3=87=C2=
=B1=C3=AE=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=C2=B0=C3=B6=
=C3=87=C2=B1=C3=89=C3=87=C2=B1=C2=A3=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=
=AA=C3=87=C2=B0=C2=BC=C3=87=E2=96=A0=C3=87=C3=87=E2=96=A0=E2=95=95=C3=87=
=C2=B0=C3=B6=C3=87=C2=B0=C3=B1=C3=87=C2=B0=C2=A3=C3=87=C2=B0=C3=A1=C3=87=
=C2=B0=C3=AA=C3=87=C2=B0=E2=95=9D=C3=87=C2=B1=C3=AA=C3=87=C2=B0=C3=A1=C3=
=87=C2=B0=E2=95=9D=C3=87=C2=B0=E2=95=9D=C3=87=C2=B0=C3=89=C3=87]
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
smb: \> ls
. D 0 Thu Apr 3 06:=
43:17
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
.. D 0 Thu Apr 3 06:=
43:17
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
._.DS_Store 4096 Thu Apr 3 06:=
43:17
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
.DS_Store 6148 Thu Apr 3 06:=
43:39
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
shellscript.txt 3260 Wed Apr 2 19:=
09:53
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
2014
Post by Nadezhda Ivanova
65535 blocks of size 32768. 65535 blocks availabl=
e
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
smb: \>
RFC1001 size 84 smaller than SMB for mid=3D1
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809034] Bad SMB: :=
dump
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
of 48 bytes of data at 0xffff880019744540
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809037] 54000000
424d53ff 00000072 c8018000 . . . T =CB=87 S M B r . . . . . . =C2=
=BB
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809039] 00000000
00000000 00000000 0e260000 . . . . . . . . . . . . . . & .
Apr 4 10:27:28 ubu-14-server1 kernel: [ 4652.809041] 00010000
03000211 00010032 0000ffff . . . . . . . . 2 . . . =CB=87 =CB=87=
. .
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
cifs_mount failed w/return code =3D -5
_IOE_DFS_MODIFY_PATH=3D/opt/dfslocal/home/dfscntl/modify.rendezv=
ous
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
_IOE_MVS_DFSDFLT=3DEMCROOT
_IOE_LFS_SYNC_INTERVAL=3D30
_IOE_SMB_CLEAR_PW=3DNOTALLOWED
_IOE_DYNAMIC_EXPORT=3DON
_IOE_SMB_TRANSPORTS=3DBOTH
_IOE_SMB_CONNECT_MSGS=3D2
_IOE_SERVER_NAME=3DEMCZPDT1
_IOE_SMB_COMPUTER_NAME=3DEMCZPDT1
_IOE_SMB_DOMAIN_NAME=3DWORKGROUP
_IOE_SMB_IDMAP=3D/opt/dfslocal/home/dfskern/smbidmap
_IOE_PROTOCOL_SMB=3DON
_IOE_WIRE_CODEPAGE=3DISO8859-1
_EUV_SVC_MSG_LOGGING=3DCONSOLE_LOGGING
DCE_START_SOCKET_NAME=3D/opt/dfslocal/home/dfscntl/ioepk.soc
TZ=3DEST5EDT
_EUV_AUTOLOG=3DNO
#NLSPATH=3D/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/En_US/%N
NLSPATH=3D/usr/lib/nls/msg/%L/%N
LANG=3DEn_US.IBM-1047
#LIBPATH=3D/usr/lib:/usr/lpp/Printsrv/lib
LIBPATH=3D/usr/lib
_IOE_SMB_OCSF=3DOFF
I am attaching wireshark captures of both the successful mount f=
rom a
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
windows machine and the failed one from the linux machine.
After my initial mail on the samba-technical list, I was contact=
ed by
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
someone in an identical situation who has also been unable to ac=
cess
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
their z/OS shares after switching to RHEL 6.x from Windows, so =
I
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
guess this is not an isolated incident.
If anyone has experience with this and has any ideas, any possib=
le
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
Post by Nadezhda Ivanova
problems with the configuration, I would appreciate it!
Best Regards,
Nadezhda
Hi Nadezhda!
This server just looks to be broken.
The server claims to support unicode according to the capability b=
its
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
and then sends an ASCII string in the Primary Domain field in the
windows capture -- that's just wrong AFAIK.
00 ff 53 4d 42 25 00
...which is also not proper unicode. Even worse, it starts with a =
NULL,
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
and then follows with the standard SMB protocol header. Looks mayb=
e
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
they have some sort of alignment problem there and a trailing SMB =
got
Post by Jeff Layton
Post by Nadezhda Ivanova
Post by Jeff Layton
tacked on to the end of this one. Nasty!
They should really talk to their server vendor ;)
--
--
Jeff Layton
2014-04-10 17:47:44 UTC
Permalink
On Thu, 10 Apr 2014 20:41:02 +0300
Post by Nadezhda Ivanova
Hi Jeff,
Thank you for the detailed explanation! The stricter checking makes
sense to me now.
Can you tell me what is wrong with the Protocol Negotiation response
returned to the windows client (the win_cifs.cap)? I thought it was
correct, as it has indeed 18 bytes after bcc, and you can see that the
primary domain is WORKGROUP, obviously I am missing something...
Regards,
Nadya
Yeah, the lengths in the windows capture look fine and it's NULL
terminated properly. I'm not sure why wireshark is complaining, but I'd
suspect that it's because the server has set the unicode bit in the
capability bits, but isn't sending that string in unicode.

If the server sent a response that looked like that to the cifs client,
I suspect that it would accept it and move on.
--
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
Loading...