login
Header Space

 
 

Re: Kernel panic during boot in usb_add_task

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Monday, November 26, 2007 - 4:54 pm

Michael Neumann wrote:

I could track it down where the panic occurs:

http://opengrok.creo.hu/dragonfly/xref/src/sys/bus/usb/usb.c#374

More specifically:

   http://opengrok.creo.hu/dragonfly/xref/src/sys/sys/queue.h#428

   *(head)->tqh_last = (elm);

This expands to:

   *(&taskq->tasks)->tgh_last = task;

There a NULL pointer is dereferenced somehow.

usb_add_task is called from uhci_timeout:

   http://opengrok.creo.hu/dragonfly/xref/src/sys/bus/usb/uhci.c#1428

It seems to get only called when a timeout occurs. That's maybe that I 
am the only one having those problems :)

I couldn't track it down further. My pure guess would be that it would 
not panic if "uhci_abort_xfer(&uxfer->xfer, USBD_TIMEOUT);" is called 
instead (sc->sc_dying == 1), but I can't build a kernel right now, so I 
can't change the code and build an ISO image.

Any further ideas?

Regards,

   Michael
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Kernel panic during boot in usb_add_task, Michael Neumann, (Tue Nov 20, 4:52 am)
Re: Kernel panic during boot in usb_add_task, Bill Hacker, (Tue Nov 20, 10:27 am)
Re: Kernel panic during boot in usb_add_task, Michael Neumann, (Wed Nov 21, 12:18 pm)
Re: Kernel panic during boot in usb_add_task, Michael Neumann, (Wed Nov 21, 12:46 pm)
Re: Kernel panic during boot in usb_add_task, Michael Neumann, (Mon Nov 26, 4:54 pm)
Re: Kernel panic during boot in usb_add_task, Bill Hacker, (Mon Nov 26, 5:24 pm)
speck-geostationary