Bug 704125 - kernel-2.6.35.13-91 breaks mount.cifs
Summary: kernel-2.6.35.13-91 breaks mount.cifs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 14
Hardware: i686
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-12 08:37 UTC by Sandro Bonazzola
Modified: 2014-06-18 07:41 UTC (History)
8 users (show)

Fixed In Version: kernel-2.6.38.7-30.fc15
Clone Of:
Environment:
Last Closed: 2011-06-07 04:36:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch -- add fallback in is_path_accessible for old servers (1.09 KB, patch)
2011-05-16 14:18 UTC, Jeff Layton
no flags Details | Diff

Description Sandro Bonazzola 2011-05-12 08:37:08 UTC
Description of problem:
/sbin/mount.cifs //WIN98/DATA$ /mnt/mount_samba/ -o servernetbiosname=WIN98,nocase,noserverino

worked fine using kernel-2.6.35.12-88, now fails using kernel-2.6.35.13-91 with mount error(22): Invalid argument.

How reproducible:
Always reproducible


Steps to Reproduce:
/sbin/mount.cifs //WIN98/DATA$ /mnt/mount_samba/ -o servernetbiosname=WIN98,nocase,noserverino

  
Actual results:
fails with mount error(22): Invalid argument.

echo 7 >/proc/fs/cifs/cifsFYI

shows:
[ 6284.652467] fs/cifs/cifsfs.c: Devname: //WIN98/DATA$/ flags: 0
[ 6284.652555] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 320 with uid:
0
[ 6284.652575] fs/cifs/connect.c: Username: root
[ 6284.652580] fs/cifs/connect.c: UNC: \\WIN98\DATA$ ip: 10.0.0.3
[ 6284.652591] fs/cifs/connect.c: Socket created
[ 6284.653004] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x1b58
[ 6284.653010] fs/cifs/transport.c: Sending smb:  total_len 72
[ 6284.654431] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 321
with uid: 0
[ 6284.654437] fs/cifs/connect.c: Demultiplex PID: 2239
[ 6284.654442] fs/cifs/connect.c: Existing smb sess not found
[ 6284.654451] fs/cifs/cifssmb.c: secFlags 0x7
[ 6284.654456] fs/cifs/transport.c: For smb_command 114
[ 6284.654460] fs/cifs/transport.c: Sending smb:  total_len 82
[ 6284.654804] fs/cifs/connect.c: rfc1002 length 0x82000004
[ 6284.654808] fs/cifs/connect.c: Good RFC 1002 session rsp
[ 6284.655032] fs/cifs/connect.c: rfc1002 length 0x51
[ 6284.655052] fs/cifs/cifssmb.c: Dialect: 2
[ 6284.655057] fs/cifs/cifssmb.c: share mode security
[ 6284.655062] fs/cifs/cifssmb.c: negprot rc 0
[ 6284.655067] fs/cifs/connect.c: Security Mode: 0x2 Capabilities: 0x203
TimeAdjust: -7200
[ 6284.655074] fs/cifs/sess.c: sess setup type 2
[ 6284.655198] fs/cifs/transport.c: For smb_command 115
[ 6284.655202] fs/cifs/transport.c: Sending smb:  total_len 182
[ 6284.655421] fs/cifs/connect.c: rfc1002 length 0x2d
[ 6284.655452] fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[ 6284.655459] fs/cifs/sess.c: ssetup rc from sendrecv2 is 0
[ 6284.655463] fs/cifs/sess.c: UID = 0
[ 6284.655467] fs/cifs/sess.c: decode sessetup ascii. bleft 0
[ 6284.655473] fs/cifs/sess.c: ssetup freeing small buf f4316140
[ 6284.655479] fs/cifs/connect.c: CIFS Session Established successfully
[ 6284.655485] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid =
321) rc = 0
[ 6284.655492] fs/cifs/connect.c: file mode: 0x1ed  dir mode: 0x1ed
[ 6284.655500] fs/cifs/connect.c: CIFS VFS: in cifs_get_tcon as Xid: 322 with
uid: 0
[ 6284.655646] fs/cifs/transport.c: For smb_command 117
[ 6284.655652] fs/cifs/transport.c: Sending smb:  total_len 98
[ 6284.655845] fs/cifs/connect.c: rfc1002 length 0x2e
[ 6284.655866] fs/cifs/connect.c: nativeFileSystem=
[ 6284.655872] fs/cifs/connect.c: Tcon flags: 0x0
[ 6284.655878] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_tcon (xid = 322)
rc = 0
[ 6284.655883] fs/cifs/connect.c: CIFS Tcon rc = 0
[ 6284.655888] fs/cifs/cifssmb.c: In QFSDeviceInfo
[ 6284.655894] fs/cifs/transport.c: For smb_command 50
[ 6284.655899] fs/cifs/transport.c: Sending smb:  total_len 72
[ 6284.656113] fs/cifs/connect.c: rfc1002 length 0x27
[ 6284.656119] fs/cifs/connect.c: invalid transact2 word count
[ 6284.656134] fs/cifs/netmisc.c: Mapping smb error code 64 to POSIX err -56
[ 6284.656142] fs/cifs/cifssmb.c: Send error in QFSDeviceInfo = -56
[ 6284.656147] fs/cifs/cifssmb.c: In QFSAttributeInfo
[ 6284.656153] fs/cifs/transport.c: For smb_command 50
[ 6284.656159] fs/cifs/transport.c: Sending smb:  total_len 72
[ 6284.656398] fs/cifs/connect.c: rfc1002 length 0x52
[ 6284.656425] fs/cifs/transport.c: For smb_command 50
[ 6284.656431] fs/cifs/transport.c: Sending smb:  total_len 77
[ 6284.656679] fs/cifs/connect.c: rfc1002 length 0x3e
[ 6284.656697] fs/cifs/netmisc.c: Mapping smb error code 1 to POSIX err -22
[ 6284.656705] fs/cifs/cifssmb.c: Send error in QPathInfo = -22
[ 6284.656711] fs/cifs/connect.c: cifs_put_tcon: tc_count=1
[ 6284.656714]
[ 6284.656718] fs/cifs/connect.c: CIFS VFS: in cifs_put_tcon as Xid: 323 with
uid: 0
[ 6284.656724] fs/cifs/cifssmb.c: In tree disconnect
[ 6284.656731] fs/cifs/transport.c: For smb_command 113
[ 6284.656736] fs/cifs/transport.c: Sending smb:  total_len 39
[ 6284.656918] fs/cifs/connect.c: rfc1002 length 0x27
[ 6284.656936] fs/cifs/connect.c: cifs_put_smb_ses: ses_count=1
[ 6284.656940]
[ 6284.656945] fs/cifs/connect.c: CIFS VFS: in cifs_put_smb_ses as Xid: 324
with uid: 0
[ 6284.656950] fs/cifs/cifssmb.c: In SMBLogoff for session disconnect
[ 6284.656957] fs/cifs/transport.c: For smb_command 116
[ 6284.656962] fs/cifs/transport.c: Sending smb:  total_len 43
[ 6284.657127] fs/cifs/connect.c: rfc1002 length 0x2b
[ 6284.657152] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 320) rc =
-22
[ 6284.657158] CIFS VFS: cifs_mount failed w/return code = -22


Expected results:
mount.cifs should work

Comment 1 Chuck Ebbert 2011-05-12 16:49:08 UTC
What does the corresponding trace look like when it works in the older kernel?

Comment 2 Sandro Bonazzola 2011-05-13 06:19:23 UTC
(In reply to comment #1)
> What does the corresponding trace look like when it works in the older kernel?

[  569.252246] fs/cifs/cifsfs.c: Devname: //WIN98/DATA$/ flags: 0
[  569.252335] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 6 with uid: 0
[  569.252358] fs/cifs/connect.c: Username: root
[  569.252364] fs/cifs/connect.c: UNC: \\WIN98\DATA$ ip: 10.0.0.3
[  569.252379] fs/cifs/connect.c: Socket created
[  569.252969] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x1b58
[  569.252975] fs/cifs/transport.c: Sending smb:  total_len 72
[  569.254180] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 7 with uid: 0
[  569.254187] fs/cifs/connect.c: Demultiplex PID: 4361
[  569.254193] fs/cifs/connect.c: Existing smb sess not found
[  569.254200] fs/cifs/connect.c: rfc1002 length 0x82000004
[  569.254204] fs/cifs/connect.c: Good RFC 1002 session rsp
[  569.254207] fs/cifs/cifssmb.c: secFlags 0x7
[  569.254212] fs/cifs/transport.c: For smb_command 114
[  569.254216] fs/cifs/transport.c: Sending smb:  total_len 82
[  569.254420] fs/cifs/connect.c: rfc1002 length 0x51
[  569.254442] fs/cifs/cifssmb.c: Dialect: 2
[  569.254446] fs/cifs/cifssmb.c: share mode security
[  569.254449] fs/cifs/cifssmb.c: negprot rc 0
[  569.254453] fs/cifs/connect.c: Security Mode: 0x2 Capabilities: 0x203 TimeAdjust: -7200
[  569.254457] fs/cifs/sess.c: sess setup type 2
[  569.254573] fs/cifs/transport.c: For smb_command 115
[  569.254577] fs/cifs/transport.c: Sending smb:  total_len 182
[  569.254734] fs/cifs/connect.c: rfc1002 length 0x2d
[  569.254753] fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[  569.254758] fs/cifs/sess.c: ssetup rc from sendrecv2 is 0
[  569.254761] fs/cifs/sess.c: UID = 0
[  569.254764] fs/cifs/sess.c: decode sessetup ascii. bleft 0
[  569.254768] fs/cifs/sess.c: ssetup freeing small buf f32cd880
[  569.254772] fs/cifs/connect.c: CIFS Session Established successfully
[  569.254792] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 7) rc = 0
[  569.254797] fs/cifs/connect.c: file mode: 0x1ed  dir mode: 0x1ed
[  569.254804] fs/cifs/connect.c: CIFS VFS: in cifs_get_tcon as Xid: 8 with uid: 0
[  569.254913] fs/cifs/transport.c: For smb_command 117
[  569.254917] fs/cifs/transport.c: Sending smb:  total_len 98
[  569.255124] fs/cifs/connect.c: rfc1002 length 0x2e
[  569.255474] fs/cifs/connect.c: nativeFileSystem=
[  569.255479] fs/cifs/connect.c: Tcon flags: 0x0
[  569.255485] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_tcon (xid = 8) rc = 0
[  569.255489] fs/cifs/connect.c: CIFS Tcon rc = 0
[  569.255493] fs/cifs/cifssmb.c: In QFSDeviceInfo
[  569.255500] fs/cifs/transport.c: For smb_command 50
[  569.255505] fs/cifs/transport.c: Sending smb:  total_len 72
[  569.255745] fs/cifs/connect.c: rfc1002 length 0x27
[  569.255754] fs/cifs/connect.c: invalid transact2 word count
[  569.255769] fs/cifs/netmisc.c: Mapping smb error code 64 to POSIX err -56
[  569.255775] fs/cifs/cifssmb.c: Send error in QFSDeviceInfo = -56
[  569.255780] fs/cifs/cifssmb.c: In QFSAttributeInfo
[  569.255786] fs/cifs/transport.c: For smb_command 50
[  569.255791] fs/cifs/transport.c: Sending smb:  total_len 72
[  569.256100] fs/cifs/connect.c: rfc1002 length 0x52
[  569.256121] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 6) rc = 0
[  569.256129] fs/cifs/inode.c: CIFS VFS: in cifs_root_iget as Xid: 9 with uid: 0
[  569.256135] fs/cifs/inode.c: Getting info on
[  569.256143] fs/cifs/transport.c: For smb_command 50
[  569.256149] fs/cifs/transport.c: Sending smb:  total_len 77
[  569.256368] fs/cifs/connect.c: rfc1002 length 0x3e
[  569.256386] fs/cifs/netmisc.c: Mapping smb error code 1 to POSIX err -22
[  569.256393] fs/cifs/cifssmb.c: Send error in QPathInfo = -22
[  569.256398] fs/cifs/cifssmb.c: In SMBQPath path
[  569.256404] fs/cifs/transport.c: For smb_command 8
[  569.256408] fs/cifs/transport.c: Sending smb:  total_len 41
[  569.256726] fs/cifs/connect.c: rfc1002 length 0x3b
[  569.256746] fs/cifs/inode.c: looking for uniqueid=119
[  569.256754] fs/cifs/inode.c: cifs_revalidate_cache: revalidating inode 119
[  569.256759] fs/cifs/inode.c: cifs_revalidate_cache: inode 119 is new
[  569.256765] fs/cifs/inode.c: inode 0xf3b201c8 old_time=0 new_time=270401

Comment 3 Hans Ecke 2011-05-13 17:57:25 UTC
Same symptoms here. 2.6.35.12-90.fc14.i686 works fine, while 2.6.35.13-91.fc14.i686 produces the error. Happy to provide additional debug output, but surface symptoms are identical to Sandro's.

My mount command line:

mount -t cifs -o domain=mesoscopic,sec=lanman,servern=ABMM,password=,file_mode=0644,dir_mode=0755 //10.11.12.13/VNA_MS98_D /mnt/abmm_d

Comment 4 Chuck Ebbert 2011-05-16 14:02:44 UTC
Only one cifs patch went in 2.6.35.13:

From 70945643722ffeac779d2529a348f99567fa5c33 Mon Sep 17 00:00:00 2001
From: Jeff Layton <jlayton>
Date: Mon, 14 Mar 2011 13:48:08 -0400
Subject: cifs: always do is_path_accessible check in cifs_mount

Comment 5 Jeff Layton 2011-05-16 14:18:50 UTC
Created attachment 499169 [details]
patch -- add fallback in is_path_accessible for old servers

Does this patch fix the issue?

Comment 6 Sandro Bonazzola 2011-05-17 10:13:24 UTC
(In reply to comment #5)
> Created attachment 499169 [details]
> patch -- add fallback in is_path_accessible for old servers
> 
> Does this patch fix the issue?

Yes, the patch seems to fix the issue for me. The share seems to be mounted correctly, without any error message.

Comment 7 Jeff Layton 2011-05-17 10:51:59 UTC
Patch sent upstream and I cc'ed stable. It should make the stable series in the near future.

Comment 8 Sandro Bonazzola 2011-05-17 11:26:18 UTC
Thanks

Comment 9 Sandro Bonazzola 2011-05-17 13:35:48 UTC
Win98 PC died with a blue screen of death on TCPIP.
On linux side the mount command said:
mount error(11): Resource temporarily unavailable

dmesg:

[12430.427578] CIFS VFS: No response for cmd 50 mid 51
[12430.991378] CIFS VFS: No response for cmd 8 mid 52
[12445.959353] CIFS VFS: No response for cmd 114 mid 53
[12445.959374] CIFS VFS: cifs_read_super: get root inode failed
[12466.921558] CIFS VFS: No response for cmd 114 mid 57
[12497.030240] CIFS VFS: No response to cmd 115 mid 62
[12497.030250] CIFS VFS: Send error in SessSetup = -11
[12497.030413] CIFS VFS: Send error in SessSetup = -11
[12497.030422] CIFS VFS: cifs_mount failed w/return code = -11
[12517.992427] CIFS VFS: No response for cmd 114 mid 64
[12538.954627] CIFS VFS: No response for cmd 114 mid 66
[12579.132707] CIFS VFS: No response for cmd 117 mid 70
[12600.093932] CIFS VFS: No response for cmd 114 mid 71
[12621.055078] CIFS VFS: No response for cmd 114 mid 73
[12642.017305] CIFS VFS: No response for cmd 114 mid 75
[12673.893174] CIFS VFS: No response to cmd 115 mid 78
[12673.893183] CIFS VFS: Send error in SessSetup = -11


It seems it doesn't work very well after all.

Comment 10 Jeff Layton 2011-05-17 13:43:52 UTC
This patch should fix the original problem. If Win98 is crashing, then there's not much we can do about it unless you can diagnose what's causing it.

Comment 11 Sandro Bonazzola 2011-05-17 16:52:35 UTC
(In reply to comment #10)
> This patch should fix the original problem. If Win98 is crashing, then there's
> not much we can do about it unless you can diagnose what's causing it.

I'll do more testing tomorrow in order to ensure it's a win98 problem and nothing related to the original problem.

Comment 12 Sandro Bonazzola 2011-05-18 07:39:25 UTC
I can confirm it's a win98 problem and nothing related to the original problem. The patch works fine. 
Could you please add the patch to f14 stable kernel while we are waiting for a new upstream kernel stable release?

Comment 13 Chuck Ebbert 2011-05-18 17:58:40 UTC
The fix will be in 2.6.35.13-92

Comment 14 Chuck Ebbert 2011-05-18 18:58:54 UTC
*** Bug 705644 has been marked as a duplicate of this bug. ***

Comment 15 Sandro Bonazzola 2011-05-25 07:56:24 UTC
Is there something blocking 2.6.35.13-92 for update-testing?

Comment 16 Fedora Update System 2011-05-25 16:15:16 UTC
kernel-2.6.35.13-92.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/kernel-2.6.35.13-92.fc14

Comment 17 Sandro Bonazzola 2011-05-27 09:23:57 UTC
(In reply to comment #16)
> kernel-2.6.35.13-92.fc14 has been submitted as an update for Fedora 14.
> https://admin.fedoraproject.org/updates/kernel-2.6.35.13-92.fc14

It works for me.

Comment 18 Fedora Update System 2011-06-02 14:42:51 UTC
kernel-2.6.38.7-30.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.38.7-30.fc15

Comment 19 Fedora Update System 2011-06-03 05:32:38 UTC
Package kernel-2.6.38.7-30.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-2.6.38.7-30.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/kernel-2.6.38.7-30.fc15
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2011-06-07 04:35:33 UTC
kernel-2.6.38.7-30.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2011-06-11 04:22:18 UTC
kernel-2.6.35.13-92.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.