[OpenAFS-devel] Re: linux 2.6.x (FC2) SMP oops: it's not CONFIG_REGPARM

Derrick J Brashear shadow@dementia.org
Thu, 24 Jun 2004 14:15:15 -0400 (EDT)


Widereply trimmed...

On Wed, 23 Jun 2004, Matthew Miller wrote:

> That patch does indeed make the module load without segfaulting. Cool. But
> then, when I go to start afsd, it segfaults and:
>
> Unable to handle kernel NULL pointer dereference at virtual address 00000000
>  printing eip:
> 022b0fc0
> *pde = 00003001
> Oops: 0002 [#1]
> SMP
> Modules linked in: libafs 3c59x microcode ohci1394 ieee1394 pcspkr dm_mod uhci_hcd ipv6 ext3 jbd aic7xxx sd_mod scsi_mod
> CPU:    0
> EIP:    0060:[<022b0fc0>]    Tainted: P
> EFLAGS: 00010002   (2.6.6-1.435.mattdmnoregparmsmp)

Is that a fedora kernel?

> EIP is at wait_for_completion+0x6f/0xc7

What changed in the completion interface from a stock kernel?

Actually it implies a wait queue is being used uninitialized.


> Process afsd (pid: 1915, threadinfo=34cf7000 task=40c53850)
> Stack: 00000000 40c53850 0211d859 00000000 00000000 00000000 00000006 03966000
>        00000001 40c53850 0211d859 34cf7e34 00000000 00000001 356db880 0212d92c
>        34cf7e2c 00000030 356db880 00000003 43b3f961 00000030 34cf7e2c 00000001
> Call Trace:
>  [<0211d859>] default_wake_function+0x0/0x12
>  [<0211d859>] default_wake_function+0x0/0x12
>  [<0212d92c>] queue_work+0x4c/0x53
>  [<43b3f961>] afs_DaemonOp+0xc7/0xcd [libafs]
>  [<43b3f872>] afsd_launcher+0x0/0x28 [libafs]
>  [<021683b7>] alloc_inode+0xfd/0x183
>  [<02168d1e>] get_new_inode_fast+0x36/0xb7
>  [<43b3f9c8>] afs_syscall_call+0x61/0x81d [libafs]
>  [<02150ea0>] rw_vm+0x224/0x25c
>  [<02150eb0>] rw_vm+0x234/0x25c
>  [<43b40263>] afs_syscall+0xab/0x1a9 [libafs]
>  [<02150ea0>] rw_vm+0x224/0x25c
>  [<02150eb0>] rw_vm+0x234/0x25c
>  [<43b3c6c9>] afs_ioctl+0x48/0x53 [libafs]
>  [<021528ce>] filp_open+0x41/0x49
>  [<02162857>] file_ioctl+0x16b/0x181
>  [<02162a59>] sys_ioctl+0x1ec/0x24d
>  [<02152cac>] sys_open+0x6d/0x82