2004-01-01 19:35:35

by Eduard Roccatello

[permalink] [raw]
Subject: Unable to handle kernel NULL pointer dereference

Hi there,

i got an oops on USB mouse disconnect. i have tried to reproduce the oops
but it happened only once. I'm running 2.6.0 vanilla with nvidia binary
drivers but they not seems to be involved in the oops (imho).
USB modules i use are: hid, hcd-ohci, hcd-ehci

This his the oops:

Unable to handle kernel NULL pointer dereference at virtual address 00000008
printing eip:
c01636fb
*pde = 00000000
Oops: 0000 [#1]
CPU: 0
EIP: 0060:[<c01636fb>] Tainted: PF
EFLAGS: 00010292
EIP is at __lookup_hash+0x1b/0xd0
eax: dfdcdeb8 ebx: 12fd28db ecx: ffffffff edx: 01b9ec71
esi: c03d0bb8 edi: 00000000 ebp: 00000000 esp: dfdcde7c
ds: 007b es: 007b ss: 0068
Process khubd (pid: 5, threadinfo=dfdcc000 task=c151c080)
Stack: 00000246 000003e8 e194d6be 12fd28db c03d0bb8 c0366258 dbf7d624
c01637cf
dfdcdeb8 00000000 00000000 c018930c dfdcdeb8 00000000 0000001e
c0366253
00000005 12fd28db dd93e380 dd93e294 dbf7d600 c018a85f 00000000
c0366253
Call Trace:
[<e194d6be>] ed_free+0x24/0x28 [ohci_hcd]
[<c01637cf>] lookup_hash+0x1f/0x23
[<c018930c>] sysfs_get_dentry+0x6a/0x70
[<c018a85f>] sysfs_remove_group+0x65/0x6a
[<c0243e6e>] dpm_sysfs_remove+0x1a/0x20
[<c0243937>] device_pm_remove+0x26/0x71
[<c0241487>] device_del+0x65/0x9b
[<c028c165>] usb_disable_device+0x71/0xac
[<c02869d6>] usb_disconnect+0x9b/0xe6
[<c0288ffa>] hub_port_connect_change+0x31d/0x322
[<c0288916>] hub_port_status+0x45/0xb0
[<c0289338>] hub_events+0x339/0x39e
[<c02893ca>] hub_thread+0x2d/0xe3
[<c0109032>] ret_from_fork+0x6/0x14
[<c011b420>] default_wake_function+0x0/0x12
[<c028939d>] hub_thread+0x0/0xe3
[<c01070c9>] kernel_thread_helper+0x5/0xb

Code: 8b 77 08 c7 44 24 04 01 00 00 00 89 6c 24 08 89 34 24 e8 d4


Thanks for the attention (and sorry for my english)
See you
--
Eduard Roccatello
S.P.I.N.E. Group


2004-01-02 01:38:12

by Greg KH

[permalink] [raw]
Subject: Re: Unable to handle kernel NULL pointer dereference

On Thu, Jan 01, 2004 at 07:44:50PM +0100, Eduard <master^shadow> Roccatello wrote:
> Hi there,
>
> i got an oops on USB mouse disconnect. i have tried to reproduce the oops
> but it happened only once. I'm running 2.6.0 vanilla with nvidia binary
> drivers but they not seems to be involved in the oops (imho).
> USB modules i use are: hid, hcd-ohci, hcd-ehci

There is a patch in the -mm tree to fix this. I've included it here
below.

thanks,

greg k-h


diff -Nru a/fs/sysfs/dir.c b/fs/sysfs/dir.c
--- a/fs/sysfs/dir.c Mon Dec 22 16:02:07 2003
+++ b/fs/sysfs/dir.c Mon Dec 22 16:02:07 2003
@@ -83,7 +83,8 @@
struct dentry * parent = dget(d->d_parent);
down(&parent->d_inode->i_sem);
d_delete(d);
- simple_rmdir(parent->d_inode,d);
+ if (d->d_inode)
+ simple_rmdir(parent->d_inode,d);

pr_debug(" o %s removing done (%d)\n",d->d_name.name,
atomic_read(&d->d_count));

2004-01-03 10:20:19

by Michael Stucki

[permalink] [raw]
Subject: Re: Unable to handle kernel NULL pointer dereference

Dear Greg,

I have exactly the same problem and I am using nvidia's binary drivers as
well, so they might be a problem anyway.

> There is a patch in the -mm tree to fix this. I've included it here
> below.

Thanks. Unfortunately, this doesn't solve my problem.

Maybe this information could be useful:
http://www.mstucki.net/files/misc/messages.txt

Kind regards
- michael

2004-01-07 21:06:18

by Greg KH

[permalink] [raw]
Subject: Re: Unable to handle kernel NULL pointer dereference

On Sat, Jan 03, 2004 at 10:47:05AM +0100, Michael Stucki wrote:
> Dear Greg,
>
> I have exactly the same problem and I am using nvidia's binary drivers as
> well, so they might be a problem anyway.

Can you duplicate this on 2.6.1-rc2 + the sysfs patch without the nvidia
drivers?

thanks,

greg k-h