Kernel panic during boot in usb_add_task

Michael Neumann mneumann at
Mon Dec 10 03:33:03 PST 2007

Matthew Dillon wrote:
:More specifically:
:   *(head)->tqh_last = (elm);
:This expands to:
:   *(&taskq->tasks)->tgh_last = task;
:There a NULL pointer is dereferenced somehow.
     It looks like memory corruption.  USB may be issuing duplicate TAILQ
     operations on its taskq structure(s).
     Please try this patch.  If it doesn't work then one or more task
     structure is probably being ripped out from under the usb code,
     probably by somthing related to uhci_timeout() as you previously
     reported.  My guess is that uhci_detach() is ripping the structure
     out without waiting for the abort to finish but lets see if this
     patch has any effect first.
No, your patch doesn't work. Thanks anyway!



More information about the Kernel mailing list