All of lore.kernel.org
 help / color / mirror / Atom feed
* smb2 oops at small_smb2_init
@ 2010-10-08 15:12 Suresh Jayaraman
       [not found] ` <4CAF34C2.9050404-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Suresh Jayaraman @ 2010-10-08 15:12 UTC (permalink / raw)
  To: Steve French; +Cc: linux-cifs

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/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
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>


-- 
Suresh Jayaraman

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: smb2 oops at small_smb2_init
       [not found] ` <4CAF34C2.9050404-l3A5Bk7waGM@public.gmane.org>
@ 2010-10-08 15:16   ` Suresh Jayaraman
       [not found]     ` <4CAF35C1.1070307-l3A5Bk7waGM@public.gmane.org>
  2010-10-21 21:07   ` Shirish Pargaonkar
  1 sibling, 1 reply; 6+ messages in thread
From: Suresh Jayaraman @ 2010-10-08 15:16 UTC (permalink / raw)
  To: Steve French; +Cc: linux-cifs

On 10/08/2010 08:42 PM, Suresh Jayaraman wrote:
> 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`.

> commit 17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
> Author: Steve French <sfrench-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> 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>
> 
> 


-- 
Suresh Jayaraman

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: smb2 oops at small_smb2_init
       [not found]     ` <4CAF35C1.1070307-l3A5Bk7waGM@public.gmane.org>
@ 2010-10-08 16:10       ` Steve French
  0 siblings, 0 replies; 6+ messages in thread
From: Steve French @ 2010-10-08 16:10 UTC (permalink / raw)
  To: Suresh Jayaraman; +Cc: linux-cifs

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.

On Fri, Oct 8, 2010 at 10:16 AM, Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote:
> On 10/08/2010 08:42 PM, Suresh Jayaraman wrote:
>> 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`.
>
>> commit 17e0c71f49f98c1fc0e8eb34775eb05d2388edd2
>> Author: Steve French <sfrench-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>> 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>
>>
>>
>
>
> --
> Suresh Jayaraman
>



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: smb2 oops at small_smb2_init
       [not found] ` <4CAF34C2.9050404-l3A5Bk7waGM@public.gmane.org>
  2010-10-08 15:16   ` Suresh Jayaraman
@ 2010-10-21 21:07   ` Shirish Pargaonkar
       [not found]     ` <AANLkTimr0d-N_xBPrvB=2tRVrhYMX=kKECRsbaNS_urb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Shirish Pargaonkar @ 2010-10-21 21:07 UTC (permalink / raw)
  To: Suresh Jayaraman; +Cc: Steve French, linux-cifs

On Fri, Oct 8, 2010 at 10:12 AM, Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote:
> 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/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> 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>
>
>
> --
> Suresh Jayaraman
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: smb2 oops at small_smb2_init
       [not found]     ` <AANLkTimr0d-N_xBPrvB=2tRVrhYMX=kKECRsbaNS_urb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-10-21 21:08       ` Shirish Pargaonkar
       [not found]         ` <AANLkTimRKBucjze3TTMFh+9F3KGcnx7pKR6WrwHwFjTN-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Shirish Pargaonkar @ 2010-10-21 21:08 UTC (permalink / raw)
  To: Suresh Jayaraman; +Cc: Steve French, linux-cifs

On Thu, Oct 21, 2010 at 4:07 PM, Shirish Pargaonkar
<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Fri, Oct 8, 2010 at 10:12 AM, Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote:
>> 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/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>> 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>
>>
>>
>> --
>> Suresh Jayaraman
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> 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.
>

I see tons of slab errors logged but no oops just for doing ls or ls -l

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: smb2 oops at small_smb2_init
       [not found]         ` <AANLkTimRKBucjze3TTMFh+9F3KGcnx7pKR6WrwHwFjTN-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-10-22  6:39           ` Suresh Jayaraman
  0 siblings, 0 replies; 6+ messages in thread
From: Suresh Jayaraman @ 2010-10-22  6:39 UTC (permalink / raw)
  To: Shirish Pargaonkar; +Cc: Steve French, linux-cifs

On 10/22/2010 02:38 AM, Shirish Pargaonkar wrote:
> On Thu, Oct 21, 2010 at 4:07 PM, Shirish Pargaonkar
> <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> On Fri, Oct 8, 2010 at 10:12 AM, Suresh Jayaraman <sjayaraman@suse.de> wrote:
>>> 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/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>>> 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>
>>>
>>>>
>>
>> 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,


-- 
Suresh Jayaraman

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-22  6:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-08 15:12 smb2 oops at small_smb2_init Suresh Jayaraman
     [not found] ` <4CAF34C2.9050404-l3A5Bk7waGM@public.gmane.org>
2010-10-08 15:16   ` Suresh Jayaraman
     [not found]     ` <4CAF35C1.1070307-l3A5Bk7waGM@public.gmane.org>
2010-10-08 16:10       ` Steve French
2010-10-21 21:07   ` Shirish Pargaonkar
     [not found]     ` <AANLkTimr0d-N_xBPrvB=2tRVrhYMX=kKECRsbaNS_urb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-21 21:08       ` Shirish Pargaonkar
     [not found]         ` <AANLkTimRKBucjze3TTMFh+9F3KGcnx7pKR6WrwHwFjTN-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-22  6:39           ` Suresh Jayaraman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.