Subject: Re: crash in event_set_handler() when loading LKM
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Jeff Rizzo <riz@tastylime.net>
List: port-xen
Date: 11/09/2005 14:35:26
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE5BDBFB332043182BF8247A8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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


--------------enigE5BDBFB332043182BF8247A8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQCVAwUBQ3J5rrOuUtxCgar5AQNzaQP+NB+Ri9B+lg11u/Gke77NFbESa9o1PvVw
WWPRdzqWiirvozOlDobOKfYuwcniDDoPyvHG5uANOZ0hSJPnBw7/1sjM24y58CDS
VAVf5/YNmxDbmeMn/GRiWGTWUhc/fk6aePjvC1u5uCDOSbqQxfekdvWRFvUfq24D
PqylkgAa5WU=
=bDZ7
-----END PGP SIGNATURE-----

--------------enigE5BDBFB332043182BF8247A8--