Re: BUG: unable to handle kernel NULL pointer dereference at 00000002

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 Sep 2009, Manish Katiyar wrote:

> Hi,
> 
> while resuming  my laptop after a suspend, I see the following in my
> dmesg. My kernel is running 2.6.31-rc7 . I am not subscribed to the
> list, so please cc me while replying.
> 
> 
> [ 1968.716951] Restarting tasks ...
> [ 1968.717893] BUG: unable to handle kernel NULL pointer dereference at 00000002
> [ 1968.717905] IP: [<f866bbb3>] hub_thread+0x233/0x2260 [usbcore]

> With my limited knowledge I tried debugging above oops .... and think
> that line 3138 in usb/core/hub.c is problematic. The corresponding
> offending assembly is :-
> 
> 11496 .L674:
> 11497         .loc 1 3138 0
> 11498         movl    -160(%ebp), %edx        # hub,
> 11499         movl    76(%edx), %eax  # <variable>.descriptor,
> <variable>.descriptor
> 11500         leal    64(%edx), %ecx  #,
> 11501         movl    %ecx, -180(%ebp)        #,
> 11502         cmpb    $0, 2(%eax)     # <variable>.bNbrPorts
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> 
> 
> 3136
> 3137                 /* deal with port status changes */
> 3138                 for (i = 1; i <= hub->descriptor->bNbrPorts; i++)
> {

Could be.  Please rebuild your kernel with CONFIG_USB_DEBUG enabled and 
post the dmesg log showing a complete boot-up, suspend, and resume 
(including the oops).  That will tell us more about what's going on.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux