Unable to mount CIFS shares
Subsystems (2)
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit d804d41d163c0975d2890c82d7135ada7a2f23a4
Author: Jeff Layton <[email protected]> Date: Fri Jan 28 15:05:43 2011 -0500
cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share /mnt/cifs/ -o user=vguest Password:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Looks like an error caused due to recent crypto changes.
Shirish: any clues?
dmesg o/p
----------
[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2
dmesg with cFYI
----------------
[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2
Signature · 1 line
Suresh Jayaraman
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4Author: Jeff Layton <[email protected]> Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
Quoted 7 lines
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?
Looks like commit ee2c9258501f83d3ed0fd09ce5df1cec53312cf0 is the culprit.
Quoted 45 lines
dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2
Signature · 1 line
Suresh Jayaraman
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 cifs: make CIFS depend on CRYPTO_MD4
Recently CIFS was changed to use the kernel crypto API for MD4 hashes, but the Kconfig dependencies were not changed to reflect this.
--- fs/cifs/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
fs/cifs/Kconfig +1 -0
@@ -3,6 +3,7 @@ config CIFS depends on INET select NLS select CRYPTO + select CRYPTO_MD4 select CRYPTO_MD5 select CRYPTO_HMAC select CRYPTO_ARC4
Signature · 1 line
1.7.3.4
A message that is not in the archive (sent off-list or not yet received): 1296481296-13270-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Shirish Pargaonkar
Reviewed-byRe: [PATCH] cifs: make CIFS depend on CRYPTO_MD4
Quoted 15 lines · Jeff Layton
Recently CIFS was changed to use the kernel crypto API for MD4 hashes, but the
Kconfigdependencies were not changed to reflect this.Signed-off-by Jeff Layton <[email protected]>Reported-by Suresh Jayaraman <[email protected]>---
fs/cifs/Kconfig | 1 +1 files changed, 1 insertions(+), 0 deletions(-)fs/cifs/Kconfig +0
-0@@ -3,6 +3,7 @@ config CIFSdepends on INET
Quoted 10 lines
select NLS
select CRYPTO
+ selectCRYPTO_MD4
selectCRYPTO_MD5
selectCRYPTO_HMAC
selectCRYPTO_ARC4
--
1.7.3.4
Thanks Jeff. Missed to make this change in an earlier patch.
Re: [PATCH] cifs: make CIFS depend on CRYPTO_MD4
In reply to a message not in the archiveQuoted 8 lines · Jeff Layton
Recently CIFS was changed to use the kernel crypto API for MD4 hashes, but the
Kconfigdependencies were not changed to reflect this.Signed-off-by Jeff Layton <[email protected]>Reported-by Suresh Jayaraman <[email protected]>--- fs/cifs/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
The patch fixed the problem for me.
Quoted 12 lines
fs/cifs/Kconfig +1
-0@@ -3,6 +3,7 @@ config CIFS depends on INET select NLS select CRYPTO + select CRYPTO_MD4 select CRYPTO_MD5 select CRYPTO_HMAC select CRYPTO_ARC4
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH] cifs: make CIFS depend on CRYPTO_MD4
merged
Quoted 28 lines · Suresh Jayaraman
Quoted 8 lines · Jeff Layton
Recently CIFS was changed to use the kernel crypto API for MD4 hashes, but the
Kconfigdependencies were not changed to reflect this.Signed-off-by Jeff Layton <[email protected]>Reported-by Suresh Jayaraman <[email protected]>---
fs/cifs/Kconfig | 1 +1 files changed, 1 insertions(+), 0 deletions(-)The patch fixed the problem for me.
Reported-and-Tested-by Suresh Jayaraman <[email protected]>Quoted 12 lines
fs/cifs/Kconfig +0
-0@@ -3,6 +3,7 @@ config CIFSdepends on INET
select NLS
select CRYPTO
+ selectCRYPTO_MD4
selectCRYPTO_MD5
selectCRYPTO_HMAC
selectCRYPTO_ARC4
Signature · 3 lines
Thanks, Steve
Quoted 63 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4
Author: Jeff Layton <[email protected]>
Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2
Quoted 3 lines
--
Suresh Jayaraman
Suresh, looks like plaintext authentication is failing? Does the mount succeed with any of sec options such as sec=ntlm or sec=ntlmv2 or sec=ntlmssp?
A message that is not in the archive (sent off-list or not yet received): AANLkTimZXHzm04htXOPXuUySxzEBofiyP5ZxN=5aqj2m-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 63 lines · Shirish Pargaonkar
Quoted 53 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4Author: Jeff Layton <[email protected]> Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2Quoted 8 lines
[ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2
Quoted 3 lines
Suresh, looks like plaintext authentication is failing? Does the mount succeed with any of sec options such as sec=ntlm or sec=ntlmv2 or sec=ntlmssp?
Seems the issue is due to missing MD4 module. After I enabled CONFIG_CRYPTO_MD4 as suggested by Jeff, the issue went away.
Jeff, would send the fix in a bit.
Signature · 1 line
Suresh Jayaraman
Quoted 64 lines · Shirish Pargaonkar
Quoted 63 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4
Author: Jeff Layton <[email protected]>
Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2
Quoted 8 lines
Quoted 3 lines
--
Suresh JayaramanSuresh, looks like plaintext authentication is failing? Does the mount succeed with any of sec options such as sec=ntlm or sec=ntlmv2 or sec=ntlmssp?
This error does not look good
[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2
never seen it. Investigating.
I think I missed the change
select CRYPTO_MD5
in Kconfig. Can you try adding it and see if it helps?
A message that is not in the archive (sent off-list or not yet received): AANLkTinRpO0drCNhnuxSx77a8bc8C_AYxJx510YUZyo7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 75 lines · Shirish Pargaonkar
Quoted 64 lines · Shirish Pargaonkar
Quoted 63 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4
Author: Jeff Layton <[email protected]>
Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2Quoted 8 lines
Quoted 3 lines
--
Suresh JayaramanSuresh, looks like plaintext authentication is failing? Does the mount succeed with any of sec options such as sec=ntlm or sec=ntlmv2 or sec=ntlmssp?
Quoted 8 lines
This error does not look good
[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2never seen it. Investigating.
I think I missed the change
selectCRYPTO_MD5
inKconfig. Can you try adding it and see if it helps?
Wondering why I never ran into this problem while coming up with the patch and testing!
Quoted 81 lines · Shirish Pargaonkar
Quoted 79 lines · Shirish Pargaonkar
Quoted 64 lines · Shirish Pargaonkar
Quoted 63 lines · Suresh Jayaraman
After updating my tree to HEAD^1, I'm unable to mount CIFS Shares.
The topmost commit is:
commit
d804d41d163c0975d2890c82d7135ada7a2f23a4Author: Jeff Layton <[email protected]> Date: Fri Jan 28 15:05:43 2011 -0500cifs: don't pop a printk when sending on a socket is interrupted
mount -t cifs //164.99.140.8/share
/mnt/cifs/-o user=vguest Password:
mount error(2): No such file or directory
Refer to themount.cifs(8)manual page (e.g. man mount.cifs)Looks like an error caused due to recent crypto changes.
Shirish: any clues?dmesg o/p
----------[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1079.934781] [ 1079.934783] CIFS VFS: Error -2 during NTLM authentication [ 1079.934785] CIFS VFS: Send error in SessSetup = -2 [ 1079.934802] CIFS VFS: cifs_mount failed w/return code = -2dmesg with cFYI
----------------[ 1121.620509] fs/cifs/cifsfs.c: Devname: //164.99.140.8/share/ flags: 0 [ 1121.620637] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 24 with uid: 0 [ 1121.620649] fs/cifs/connect.c: Username: vguest [ 1121.623357] fs/cifs/connect.c: UNC: \\164.99.140.8\share ip: 164.99.140.8 [ 1121.623382] fs/cifs/connect.c: Socket created [ 1121.623770] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [ 1121.623804] fs/cifs/fscache.c: CIFS: get client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.623809] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 25 with uid: 0 [ 1121.623811] fs/cifs/connect.c: Existing smb sess not found [ 1121.623819] fs/cifs/cifssmb.c: secFlags 0x7 [ 1121.623824] fs/cifs/transport.c: For smb_command 114 [ 1121.623826] fs/cifs/transport.c: Sending smb: total_len 82 [ 1121.623961] fs/cifs/connect.c: Demultiplex PID: 2768 [ 1121.625001] fs/cifs/connect.c: rfc1002 length 0x65 [ 1121.625007] fs/cifs/misc.c: Calculated size 81 vs length 101 mismatch for mid 1 [ 1121.625015] fs/cifs/transport.c: sync_mid_result: cmd=114 mid=1 state=4 [ 1121.625018] fs/cifs/cifssmb.c: Dialect: 2 [ 1121.625020] fs/cifs/cifssmb.c: negprot rc 0 [ 1121.625022] fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -19800 [ 1121.625024] fs/cifs/sess.c: sess setup type 1 [ 1121.627043] CIFS VFS: mdfour: Crypto md4 allocation error -2 [ 1121.627044] [ 1121.627046] fs/cifs/smbencrypt.c: SMBNTencrypt Can't generate NT hash, error: -2 [ 1121.627048] fs/cifs/cifsencrypt.c: setup_ntlm_response Can't generate NTLM response, error: -2 [ 1121.627049] CIFS VFS: Error -2 during NTLM authentication [ 1121.627051] fs/cifs/sess.c: ssetup freeing small buf ffff88001d348140 [ 1121.627052] CIFS VFS: Send error in SessSetup = -2 [ 1121.627055] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 25) rc = -2 [ 1121.627060] fs/cifs/fscache.c: CIFS: release client cookie (0xffff88001a202800/0xffff88001ceb6588) [ 1121.627066] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 24) rc = -2 [ 1121.627068] CIFS VFS: cifs_mount failed w/return code = -2Quoted 8 lines
Quoted 3 lines
--
Suresh JayaramanSuresh, looks like plaintext authentication is failing? Does the mount succeed with any of sec options such as sec=ntlm or sec=ntlmv2 or sec=ntlmssp?
This error does not look good
[ 1079.934780] CIFS VFS: mdfour: Crypto md4 allocation error -2never seen it. Investigating.
Quoted 7 lines
Quoted 4 lines
I think I missed the change
selectCRYPTO_MD5
inKconfig. Can you try adding it and see if it helps?Wondering why I never ran into this problem while coming up with the patch and testing!
Possibly you might have had CONFIG_CRYPTO_MD4 enabled in your kernel config already. I use a striped down version for kernel config which didn't have MD4 on.
Signature · 1 line
Suresh Jayaraman