Skip to contentSkip to conversation

Unable to handle kernel NULL pointer dereference

DISCUSSION Eduard <master^shadow> Roccatello 3 participants 4 messages Jan 1, 2004 – Jan 7, 2004 Driver core

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · On Thu, Jan 01, 2004 at 07:44:50PM +0100, Eduard <master^shadow> Roccatello…

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

fs/sysfs/dir.c +2 -1
diff -Nru a/fs/sysfs/dir.c b/fs/sysfs/dir.c
@@ -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));
#2 lore raw

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.

Quoted 2 lines

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

#3 lore raw
Quoted 4 lines · Michael Stucki

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