Port-xen archive

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

Re: crash in event_set_handler() when loading LKM



Manuel Bouyer wrote:

>On Wed, Nov 09, 2005 at 02:04:56PM -0800, Jeff Rizzo wrote:
>  
>
>>
>>event_set_handler evtch 7 handler 0xc03eae09 level -900537888 evname irq27
>>
>>The 'level' in question gets assigned to ih->ih_level, but I'm not sure
>>what a sane value for it should be...
>>    
>>
>
>Not this. It's used as index in an array, so that's likely the cause of
>your crash.
>level should be one of IPL_* value (between 1 and NIPL, currently 16).
>
>How do you call pci_intr_establish() ?
>
>  
>

Yeah, since I sent this, I've dug a little more deeply, and level is
getting set to the function pointer somehow.

The line calling pci_intr_establish() is this:

        sc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, wcfxo_intr, sc);

...which on the face of it looks ok.  (This LKM loads under NetBSD/i386)

For some reason, 'level' is being set to the address of wcfxo_intr(). 
Now that I've dug a little more, and figured out what's happening, maybe
I can figure out why.  Stay tuned.  :)

Thanks for the reply!

+j

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index