smb2 oops at small_smb2_init
Subsystems (2)
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
commit 17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
Author: Steve French <sfrench-r/[email protected]> Date: Mon Sep 27 11:22:40 2010 -0500
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null) Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>] small_smb2_init+0x48a/0x570 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt = 000000001cc22001 *pde = 0000000000000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscache snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device edd af_packet mperf fuse loop dm_mod snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer ppdev snd parport_pc soundcore parport battery ac button snd_page_alloc sg e1000 pcspkr joydev i2c_piix4 fan processor thermal thermal_sys Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is at small_smb2_init+0x48a/0x570 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX: df9fe2c0 EBX: df98a400 ECX: df98a40c EDX: 00000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI: dfbcde54 EBP: dfbcde18 ESP: dfbcddd0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000) Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack: Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] 3939312e 5d323438 00000020 dfbcde25 dfbcde54 00000202 dfbcde16 df98a414 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> c07c5f80 00030005 dfbcde16 dfbcde9a dfbcded8 df98a400 dfbcde18 dfbcde9a Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffb df98a400 dfbcde64 e0b19081 e0b2c2be e0b2c1f1 de11921c dfbcded4 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace: Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b19081>] ? SMB2_open+0x61/0x210 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0303d2f>] ? link_path_walk+0x2df/0x8f0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b174e6>] ? smb2_statfs+0x96/0x180 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf4d>] ? statfs_by_dentry+0x5d/0x80 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf8d>] ? vfs_statfs+0x1d/0xc0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d04b>] ? do_statfs64+0x1b/0x40 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d27a>] ? sys_statfs64+0x5a/0x90 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0202dd8>] ? sysenter_do_call+0x12/0x28 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>] small_smb2_init+0x48a/0x570 [smb2] SS:ESP 0068:dfbcddd0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace 1f484c3add74651c ]---
sFYI output (snipped)
<snip>
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207890] fs/smb2/smb2pdu.c: negotiated smb2 dialect Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207892] fs/smb2/sess.c: Security Mode: 0x1 Capabilities: 0x1 TimeAdjust: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207894] fs/smb2/smb2pdu.c: Session Setup Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207896] fs/smb2/smb2pdu.c: sec_flags 0x7 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207899] fs/smb2/transport.c: Credits: 20 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207900] fs/smb2/transport.c: For smb_command 1 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207902] fs/smb2/transport.c: Sending smb: total_len 124 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: rfc1002 length 0x10e Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: num_bytes to read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: read from socket returns 0 with total_read 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: before find owner for 119 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: After find owner for 119 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: num_bytes to read from socket 202 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/misc.c: Null buffer passed to smb2_small_buf_release Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status 0xc0000016 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/smb2pdu.c: sec_flags 0x7 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: Credits: 39 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: For smb_command 1 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: Sending smb: total_len 196 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211763] fs/smb2/demultiplex.c: rfc1002 length 0x4c Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211779] fs/smb2/demultiplex.c: num_bytes to read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211794] fs/smb2/demultiplex.c: read from socket returns 0 with total_read 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211807] fs/smb2/demultiplex.c: before find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211820] fs/smb2/demultiplex.c: After find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211832] fs/smb2/demultiplex.c: num_bytes to read from socket 8 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211882] fs/smb2/misc.c: Null buffer passed to smb2_small_buf_release Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211895] fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status 0x0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211907] fs/smb2/sess.c: SMB2 Session Established successfully
</snip>
Signature · 1 line
Suresh Jayaraman
Quoted 4 lines · Suresh Jayaraman
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
To be precise, the oops happens when I try to do an ls -l.
Quoted 74 lines
commit
17e0c71f49f98c1fc0e8eb34775eb05d2388edd2Author: Steve French <sfrench-r/[email protected]> Date: Mon Sep 27 11:22:40 2010 -0500Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null) Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>] small_smb2_init+0x48a/0x570 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt = 000000001cc22001 *pde = 0000000000000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscache snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device edd af_packet mperf fuse loop dm_mod snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer ppdev snd parport_pc soundcore parport battery ac button snd_page_alloc sg e1000 pcspkr joydev i2c_piix4 fan processor thermal thermal_sys Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is at small_smb2_init+0x48a/0x570 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX: df9fe2c0 EBX: df98a400 ECX: df98a40c EDX: 00000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI: dfbcde54 EBP: dfbcde18 ESP: dfbcddd0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000) Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack: Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] 3939312e 5d323438 00000020 dfbcde25 dfbcde54 00000202 dfbcde16 df98a414 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> c07c5f80 00030005 dfbcde16 dfbcde9a dfbcded8 df98a400 dfbcde18 dfbcde9a Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffb df98a400 dfbcde64 e0b19081 e0b2c2be e0b2c1f1 de11921c dfbcded4 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace: Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b19081>] ? SMB2_open+0x61/0x210 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0303d2f>] ? link_path_walk+0x2df/0x8f0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b174e6>] ? smb2_statfs+0x96/0x180 [smb2] Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf4d>] ? statfs_by_dentry+0x5d/0x80 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf8d>] ? vfs_statfs+0x1d/0xc0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d04b>] ? do_statfs64+0x1b/0x40 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d27a>] ? sys_statfs64+0x5a/0x90 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0202dd8>] ? sysenter_do_call+0x12/0x28 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>] small_smb2_init+0x48a/0x570 [smb2] SS:ESP 0068:dfbcddd0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace 1f484c3add74651c ]---sFYI output (snipped)
<snip>
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207890] fs/smb2/smb2pdu.c: negotiated smb2 dialect Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207892] fs/smb2/sess.c: Security Mode: 0x1 Capabilities: 0x1 TimeAdjust: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207894] fs/smb2/smb2pdu.c: Session Setup Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207896] fs/smb2/smb2pdu.c: sec_flags 0x7 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207899] fs/smb2/transport.c: Credits: 20 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207900] fs/smb2/transport.c: For smb_command 1 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207902] fs/smb2/transport.c: Sending smb: total_len 124 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: rfc1002 length 0x10e Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: num_bytes to read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: read from socket returns 0 with total_read 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: before find owner for 119 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: After find owner for 119 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] fs/smb2/demultiplex.c: num_bytes to read from socket 202 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/misc.c: Null buffer passed to smb2_small_buf_release Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status 0xc0000016 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/smb2pdu.c: sec_flags 0x7 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: Credits: 39 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: For smb_command 1 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282] fs/smb2/transport.c: Sending smb: total_len 196 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211763] fs/smb2/demultiplex.c: rfc1002 length 0x4c Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211779] fs/smb2/demultiplex.c: num_bytes to read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211794] fs/smb2/demultiplex.c: read from socket returns 0 with total_read 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211807] fs/smb2/demultiplex.c: before find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211820] fs/smb2/demultiplex.c: After find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211832] fs/smb2/demultiplex.c: num_bytes to read from socket 8 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211882] fs/smb2/misc.c: Null buffer passed to smb2_small_buf_release Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211895] fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status 0x0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211907] fs/smb2/sess.c: SMB2 Session Established successfully</snip>
Signature · 1 line
Suresh Jayaraman
At the moment ls won't work if there are more than one buffer file of files.
I made various fixes to the readdir code three weeks ago. There were problems in the code which handles file close (it now has to handle directory close as well) and file initialization (which now has to
handle directory open, not just file open). The other fixes handled
an "off by one" error in the parsing of the first readdir response. The search continuation code is not implemented and that might be what you are hitting.
Will look at that this afternoon, but cifs patch reviewing/merging (especially Jeff's 30+ patches and also Shirish's patches) has been
occupying a lot of time. Thank you for reviewing Jeff's patch series
- it makes it easier/quicker.
Quoted 87 lines · Suresh Jayaraman
Quoted 4 lines · Suresh Jayaraman
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
To be precise, the oops happens when I try to do an
ls -l.Quoted 64 lines
commit
17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
Author: Steve French <sfrench-r/[email protected]>
Date: Mon Sep 27 11:22:40 2010 -0500Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt =000000001cc22001*pde = 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscachesnd_pcm_osssnd_mixer_osssnd_seqsnd_seq_deviceeddaf_packetmperf fuse loopdm_modsnd_intel8x0snd_ac97_codecac97_bussnd_pcmsnd_timerppdev sndparport_pcsoundcore parport battery ac buttonsnd_page_allocsg e1000 pcspkr joydevi2c_piix4fan processor thermalthermal_sysOct 8 20:21:34 linux-duw1 kernel: [ 2040.212396]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is atsmall_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX:df9fe2c0EBX:df98a400ECX:df98a40cEDX: 00000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI:dfbcde54EBP:dfbcde18ESP:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] 3939312e5d32343800000020dfbcde25dfbcde5400000202dfbcde16df98a414
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0>c07c5f8000030005dfbcde16dfbcde9adfbcded8df98a400dfbcde18dfbcde9a
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffbdf98a400dfbcde64e0b19081e0b2c2bee0b2c1f1de11921cdfbcded4
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b19081>] ?SMB2_open+0x61/0x210[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0303d2f>] ?link_path_walk+0x2df/0x8f0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b174e6>] ?smb2_statfs+0x96/0x180[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf4d>] ?statfs_by_dentry+0x5d/0x80
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf8d>] ?vfs_statfs+0x1d/0xc0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d04b>] ?do_statfs64+0x1b/0x40
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d27a>] ?sys_statfs64+0x5a/0x90
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0202dd8>] ?sysenter_do_call+0x12/0x28
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2] SS:ESP 0068:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace1f484c3add74651c]---sFYI output (snipped)
<snip>
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207890]fs/smb2/smb2pdu.c: negotiated smb2 dialect
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207892]fs/smb2/sess.c: Security Mode:0x1Capabilities:0x1TimeAdjust: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207894]fs/smb2/smb2pdu.c: Session Setup
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207896]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207899]fs/smb2/transport.c: Credits: 20
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207900]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207902]fs/smb2/transport.c: Sending smb:total_len124
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: rfc1002 length0x10e
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: before find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: After find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 202 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned0xc0000016STATUS_MORE_PROCESSING_REQUIREDOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status0xc0000016Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Credits: 39
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Sending smb:total_len196
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211763]fs/smb2/demultiplex.c: rfc1002 length0x4c
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211779]fs/smb2/demultiplex.c:num_bytesto read from socket 64Quoted 10 lines
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211794]
fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211807]fs/smb2/demultiplex.c: before find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211820]fs/smb2/demultiplex.c: After find owner for 120 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211832]fs/smb2/demultiplex.c:num_bytesto read from socket 8 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211882]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.211895]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status0x0Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211907]fs/smb2/sess.c: SMB2 Session Established successfully </snip>--
Suresh Jayaraman
Signature · 3 lines
Thanks, Steve
Quoted 79 lines · Suresh Jayaraman
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
commit
17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
Author: Steve French <sfrench-r/[email protected]>
Date: Mon Sep 27 11:22:40 2010 -0500Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt =000000001cc22001*pde = 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscachesnd_pcm_osssnd_mixer_osssnd_seqsnd_seq_deviceeddaf_packetmperf fuse loopdm_modsnd_intel8x0snd_ac97_codecac97_bussnd_pcmsnd_timerppdev sndparport_pcsoundcore parport battery ac buttonsnd_page_allocsg e1000 pcspkr joydevi2c_piix4fan processor thermalthermal_sysOct 8 20:21:34 linux-duw1 kernel: [ 2040.212396]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is atsmall_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX:df9fe2c0EBX:df98a400ECX:df98a40cEDX: 00000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI:dfbcde54EBP:dfbcde18ESP:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] 3939312e5d32343800000020dfbcde25dfbcde5400000202dfbcde16df98a414
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0>c07c5f8000030005dfbcde16dfbcde9adfbcded8df98a400dfbcde18dfbcde9a
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffbdf98a400dfbcde64e0b19081e0b2c2bee0b2c1f1de11921cdfbcded4
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b19081>] ?SMB2_open+0x61/0x210[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0303d2f>] ?link_path_walk+0x2df/0x8f0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b174e6>] ?smb2_statfs+0x96/0x180[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf4d>] ?statfs_by_dentry+0x5d/0x80
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf8d>] ?vfs_statfs+0x1d/0xc0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d04b>] ?do_statfs64+0x1b/0x40
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d27a>] ?sys_statfs64+0x5a/0x90
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0202dd8>] ?sysenter_do_call+0x12/0x28
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2] SS:ESP 0068:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace1f484c3add74651c]---sFYI output (snipped)
<snip>
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207890]fs/smb2/smb2pdu.c: negotiated smb2 dialect
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207892]fs/smb2/sess.c: Security Mode:0x1Capabilities:0x1TimeAdjust: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207894]fs/smb2/smb2pdu.c: Session Setup
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207896]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207899]fs/smb2/transport.c: Credits: 20
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207900]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207902]fs/smb2/transport.c: Sending smb:total_len124
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: rfc1002 length0x10e
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: before find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: After find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 202 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned0xc0000016STATUS_MORE_PROCESSING_REQUIREDOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status0xc0000016Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Credits: 39
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Sending smb:total_len196
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211763]fs/smb2/demultiplex.c: rfc1002 length0x4c
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211779]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211794]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211807]fs/smb2/demultiplex.c: before find owner for 120
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211820]fs/smb2/demultiplex.c: After find owner for 120
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211832]fs/smb2/demultiplex.c:num_bytesto read from socket 8 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211882]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.211895]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status0x0Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211907]fs/smb2/sess.c: SMB2 Session Established successfully </snip>
Quoted 7 lines
--
Suresh Jayaraman
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Suresh, I do not see an oops just by doing ls or ls -l against an smb2 mounted share.
Is there a particular command that you execute that results in oops? I can try that
to recreate here.
Quoted 88 lines · Shirish Pargaonkar
Quoted 79 lines · Suresh Jayaraman
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
commit
17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
Author: Steve French <sfrench-r/[email protected]>
Date: Mon Sep 27 11:22:40 2010 -0500Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt =000000001cc22001*pde = 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscachesnd_pcm_osssnd_mixer_osssnd_seqsnd_seq_deviceeddaf_packetmperf fuse loopdm_modsnd_intel8x0snd_ac97_codecac97_bussnd_pcmsnd_timerppdev sndparport_pcsoundcore parport battery ac buttonsnd_page_allocsg e1000 pcspkr joydevi2c_piix4fan processor thermalthermal_sysOct 8 20:21:34 linux-duw1 kernel: [ 2040.212396]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is atsmall_smb2_init+0x48a/0x570[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX:df9fe2c0EBX:df98a400ECX:df98a40cEDX: 00000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI:dfbcde54EBP:dfbcde18ESP:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000)
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] 3939312e5d32343800000020dfbcde25dfbcde5400000202dfbcde16df98a414
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0>c07c5f8000030005dfbcde16dfbcde9adfbcded8df98a400dfbcde18dfbcde9a
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffbdf98a400dfbcde64e0b19081e0b2c2bee0b2c1f1de11921cdfbcded4
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace:
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b19081>] ?SMB2_open+0x61/0x210[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0303d2f>] ?link_path_walk+0x2df/0x8f0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<e0b174e6>] ?smb2_statfs+0x96/0x180[smb2]
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf4d>] ?statfs_by_dentry+0x5d/0x80
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031cf8d>] ?vfs_statfs+0x1d/0xc0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d04b>] ?do_statfs64+0x1b/0x40
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c031d27a>] ?sys_statfs64+0x5a/0x90
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] [<c0202dd8>] ?sysenter_do_call+0x12/0x28
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2] SS:ESP 0068:dfbcddd0
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace1f484c3add74651c]---sFYI output (snipped)
<snip>
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207890]fs/smb2/smb2pdu.c: negotiated smb2 dialect
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207892]fs/smb2/sess.c: Security Mode:0x1Capabilities:0x1TimeAdjust: 0 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207894]fs/smb2/smb2pdu.c: Session Setup
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207896]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207899]fs/smb2/transport.c: Credits: 20
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207900]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.207902]fs/smb2/transport.c: Sending smb:total_len124
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: rfc1002 length0x10e
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: before find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: After find owner for 119
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 202 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned0xc0000016STATUS_MORE_PROCESSING_REQUIREDOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status0xc0000016Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c:sec_flags0x7
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Credits: 39
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Forsmb_command1
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Sending smb:total_len196
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211763]fs/smb2/demultiplex.c: rfc1002 length0x4c
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211779]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211794]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211807]fs/smb2/demultiplex.c: before find owner for 120
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211820]fs/smb2/demultiplex.c: After find owner for 120
Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211832]fs/smb2/demultiplex.c:num_bytesto read from socket 8 Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211882]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct 8 20:21:34 linux-duw1 kernel: [ 2040.211895]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status0x0Oct 8 20:21:34 linux-duw1 kernel: [ 2040.211907]fs/smb2/sess.c: SMB2 Session Established successfully </snip>Quoted 7 lines
--
Suresh Jayaraman
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines
Suresh, I do not see an oops just by doing ls or ls -l against an smb2 mounted share.
Is there a particular command that you execute that results in oops? I can try that
to recreate here.
I see tons of slab errors logged but no oops just for doing ls or ls -l
Quoted 83 lines · Shirish Pargaonkar
Quoted 81 lines · Shirish Pargaonkar
Quoted 79 lines · Suresh Jayaraman
Hi Steve,
When I try to mount a smb2 share and do an `ls' and basic file operations I get this oops. My smb2 git tree up-to-date with top-most commit:
commit
17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
Author: Steve French <sfrench-r/[email protected]>
Date: � Mon Sep 27 11:22:40 2010 -0500Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211947] BUG: unable to handle kernel NULL pointer dereference at (null)
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] IP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2]
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] *pdpt =000000001cc22001*pde = 0000000000000000
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Oops: 0000 [#1] PREEMPT SMP
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/energy_full
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Modules linked in: smb2 fscachesnd_pcm_osssnd_mixer_osssnd_seqsnd_seq_deviceeddaf_packetmperf fuse loopdm_modsnd_intel8x0snd_ac97_codecac97_bussnd_pcmsnd_timerppdev sndparport_pcsoundcore parport battery ac buttonsnd_page_allocsg e1000 pcspkr joydevi2c_piix4fan processor thermalthermal_sysOct �8 20:21:34 linux-duw1 kernel: [ 2040.212396]
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Pid: 3098, comm: df Not tainted 2.6.36-rc4-12-desktop #2 /VirtualBox
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: 0060:[<e0b1859a>] EFLAGS: 00010213 CPU: 0
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP is atsmall_smb2_init+0x48a/0x570[smb2]
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] EAX:df9fe2c0EBX:df98a400ECX:df98a40cEDX: 00000000
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] ESI: 00000000 EDI:dfbcde54EBP:dfbcde18ESP:dfbcddd0
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Process df (pid: 3098, ti=dfbcc000 task=de5d0130 task.ti=dfbcc000)
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Stack:
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �3939312e5d32343800000020dfbcde25dfbcde5400000202dfbcde16df98a414
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0>c07c5f8000030005dfbcde16dfbcde9adfbcded8df98a400dfbcde18dfbcde9a
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] <0> fffffffbdf98a400dfbcde64e0b19081e0b2c2bee0b2c1f1de11921cdfbcded4
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Call Trace:
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<e0b19081>] ?SMB2_open+0x61/0x210[smb2]
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c0303d2f>] ?link_path_walk+0x2df/0x8f0
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<e0b174e6>] ?smb2_statfs+0x96/0x180[smb2]
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c031cf4d>] ?statfs_by_dentry+0x5d/0x80
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c031cf8d>] ?vfs_statfs+0x1d/0xc0
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c031d04b>] ?do_statfs64+0x1b/0x40
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c031d27a>] ?sys_statfs64+0x5a/0x90
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] �[<c0202dd8>] ?sysenter_do_call+0x12/0x28
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] Code: d0 5a ae df e9 e1 fb ff ff b8 5c 77 b3 e0 e8 8e 86 ae df 8b 43 0c 8d 4b 0c 39 c1 8b 10 75 06 eb 0e 89 d0 89 f2 80 48 4c 02 39 ca <8b> 32 75 f2 b8 5c 77 b3 e0 e8 98 83 ae df 8b 45 d8 8b 4b 2c 8b
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] EIP: [<e0b1859a>]small_smb2_init+0x48a/0x570[smb2] SS:ESP 0068:dfbcddd0
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.212396] CR2: 0000000000000000
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.238770] ---[ end trace1f484c3add74651c]---sFYI output (snipped)
<snip>
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207890]fs/smb2/smb2pdu.c: negotiated smb2 dialect
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207892]fs/smb2/sess.c: Security Mode:0x1Capabilities:0x1TimeAdjust: 0 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207894]fs/smb2/smb2pdu.c: Session Setup
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207896]fs/smb2/smb2pdu.c:sec_flags0x7
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207899]fs/smb2/transport.c: Credits: 20
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207900]fs/smb2/transport.c: Forsmb_command1
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.207902]fs/smb2/transport.c: Sending smb:total_len124
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: rfc1002 length0x10e
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: before find owner for 119
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c: After find owner for 119
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018]fs/smb2/demultiplex.c:num_bytesto read from socket 202 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209018] Status code returned0xc0000016STATUS_MORE_PROCESSING_REQUIREDOct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/maperror.c: Mapping SMB2 status code -1073741802 to POSIX err -5 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc -5 status0xc0000016Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/smb2pdu.c:sec_flags0x7
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Credits: 39
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Forsmb_command1
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.209282]fs/smb2/transport.c: Sending smb:total_len196
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211763]fs/smb2/demultiplex.c: rfc1002 length0x4c
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211779]fs/smb2/demultiplex.c:num_bytesto read from socket 64 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211794]fs/smb2/demultiplex.c: read from socket returns 0 withtotal_read64 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211807]fs/smb2/demultiplex.c: before find owner for 120
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211820]fs/smb2/demultiplex.c: After find owner for 120
Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211832]fs/smb2/demultiplex.c:num_bytesto read from socket 8 Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211882]fs/smb2/misc.c: Null buffer passed tosmb2_small_buf_releaseOct �8 20:21:34 linux-duw1 kernel: [ 2040.211895]fs/smb2/smb2pdu.c: sess setup returned buftype 1 with rc 0 status0x0Oct �8 20:21:34 linux-duw1 kernel: [ 2040.211907]fs/smb2/sess.c: SMB2 Session Established successfully </snip>Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Suresh, I do not see an oops just by doing ls or ls -l against an smb2 mounted share.
Is there a particular command that you execute that results in oops? I can try that
to recreate here.
No, it just `ls -l' that is causing the system to oops. Do you have smb2 FSCACHE configured in your kernel config?
Thanks,
Signature · 1 line
Suresh Jayaraman