[linux-cifs-client] DFS progress

Steve French smfrench at gmail.com
Mon May 19 01:21:51 GMT 2008


With the attached path (which only fixes the UnixQueryPathInfo case),
am oopsing in the upcall on samba localhost

 fs/cifs/dir.c: CIFS VFS: in cifs_lookup as Xid: 9 with uid: 0
 fs/cifs/dir.c:  parent inode = 0xde52c024 name is: dfsref and dentry
= 0xde610a18
 fs/cifs/dir.c:  NULL inode in lookup
 fs/cifs/dir.c:  Full path: //localhost/stevef/dfsref inode = 0x00000000
 fs/cifs/inode.c: Getting info on //localhost/stevef/dfsref
 fs/cifs/cifssmb.c: In QPathInfo (Unix) the path //localhost/stevef/dfsref
 fs/cifs/transport.c: For smb_command 50
 fs/cifs/transport.c: Sending smb of length 124
 fs/cifs/connect.c: rfc1002 length 0x27
 fs/cifs/connect.c: invalid transact2 word count
Status code returned 0xc0000257 NT_STATUS_PATH_NOT_COVERED
 fs/cifs/netmisc.c: Mapping smb error code 3 to POSIX err -66
 fs/cifs/cifssmb.c: Send error in QPathInfo = -66
 CIFS VFS: DFS ref
 fs/cifs/inode.c: Old time 0
 fs/cifs/inode.c: New time 210755
 fs/cifs/inode.c: allocation size less than end of file
 fs/cifs/inode.c: Size -1066027276 and blocks 6306524
 fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 9) rc = 0
 fs/cifs/cifs_dfs_ref.c: in cifs_dfs_follow_mountpoint
 fs/cifs/cifs_dfs_ref.c: CIFS VFS: in cifs_dfs_follow_mountpoint as
Xid: 10 with uid: 0
 fs/cifs/transport.c: For smb_command 117
 fs/cifs/transport.c: Sending smb of length 84
 fs/cifs/connect.c: rfc1002 length 0x3c
 fs/cifs/connect.c: CIFS Tcon rc = 0 ipc_tid = 2
 fs/cifs/cifssmb.c: In GetDFSRefer the path //localhost/stevef/dfsref
 fs/cifs/transport.c: For smb_command 50
 fs/cifs/transport.c: Sending smb of length 122
 fs/cifs/connect.c: rfc1002 length 0xfe
 fs/cifs/cifssmb.c: Decoding GetDFSRefer response BCC: 195  Offset 56
 fs/cifs/cifssmb.c: num_referrals: 1 dfs flags: 0x2 ...

 fs/cifs/cifs_dfs_ref.c: DFS: ref path: /localhost/stevef/dfsref
 fs/cifs/cifs_dfs_ref.c: DFS: node path: \localhost\stevef\Desktop
 fs/cifs/cifs_dfs_ref.c: DFS: fl: 2, srv_type: 0
 fs/cifs/cifs_dfs_ref.c: DFS: ref_flags: 0, path_consumed: 48
 fs/cifs/netmisc.c: address conversion returned 0 for localhost
 fs/cifs/netmisc.c: address conversion returned 0 for localhost
BUG: unable to handle kernel NULL pointer dereference at 00000004
IP: [<c02b3c8c>] call_sbin_request_key+0x148/0x220
*pde = 00000000
Oops: 0000 [#1] SMP
Modules linked in: cifs

Pid: 6236, comm: bash Not tainted (2.6.26-rc2-00052-gd0a9c07-dirty #4)
EIP: 0060:[<c02b3c8c>] EFLAGS: 00010246 CPU: 0
EIP is at call_sbin_request_key+0x148/0x220
EAX: 00000000 EBX: 00000000 ECX: fffffffb EDX: deb99bc6
ESI: f675a5d0 EDI: deb99ca0 EBP: deb99d2c ESP: deb99c84
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process bash (pid: 6236, ti=deb98000 task=f675a5d0 task.ti=deb98000)
Stack: c0635239 f7befd08 deb87580 deb87380 deb80030 deb99ca8 deb87588 deb90030
       c04e7427 deb99cd8 00000000 deb99ccc c02b0c36 f6c3a800 deb87ac4 00000000
       00000000 f6c3a800 deb99cec c02b0c7f 00000000 00000000 7165725f 3730372e
Call Trace:
 [<c04e7427>] ? mutex_lock+0xe/0x1e
 [<c02b0c36>] ? __key_instantiate_and_link+0x8b/0xa5
 [<c02b0c7f>] ? key_instantiate_and_link+0x2f/0x49
 [<c02b0030>] ? mqueue_poll_file+0x1d/0x56
 [<c02b3b44>] ? call_sbin_request_key+0x0/0x220
 [<c02b3a27>] ? request_key_and_link+0x1e3/0x231
 [<c02b3d8f>] ? request_key+0x2b/0x58
 [<f8d38bc7>] ? dns_resolve_server_name_to_ip+0x1f6/0x217 [cifs]
 [<f8d38eff>] ? cifs_dfs_follow_mountpoint+0x2bc/0x631 [cifs]
 [<c01673ac>] ? do_lookup+0x4f/0x140
 [<c0173bea>] ? mnt_drop_write+0x1d/0xb7
 [<c0168b02>] ? __link_path_walk+0x81c/0xb0b
 [<c011f9a2>] ? printk+0x15/0x17
 [<c0168e3d>] ? path_walk+0x4c/0x9b
 [<c01690dc>] ? do_path_lookup+0x11f/0x13a
 [<c01698fa>] ? __user_walk_fd+0x2f/0x48
 [<c0163e3d>] ? vfs_stat_fd+0x19/0x40
 [<c0163f13>] ? vfs_stat+0x11/0x13
 [<c0163f29>] ? sys_stat64+0x14/0x28
 [<c01036c9>] ? sysenter_past_esp+0x6a/0x91
 =======================
Code: ff ff 57 e8 6a 6c 01 00 8b 86 ac 02 00 00 83 c4 0c 83 b8 a0 01
00 00 00 74 08 8b 80 a0 01 00 00 eb 09 8b 86 e4 01 00 00 8b 40 24 <8b>
40 04 8d 5d 80 50 68 96 5b 64 c0 53 e8 35 6c 01 00 8b 85 58
EIP: [<c02b3c8c>] call_sbin_request_key+0x148/0x220 SS:ESP 0068:deb99c84
---[ end trace 2cb388b698ff26eb ]---



-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dfs-unixpathinfo-fill-fake-inode.patch
Type: text/x-diff
Size: 5116 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20080518/88017919/dfs-unixpathinfo-fill-fake-inode.bin


More information about the linux-cifs-client mailing list