Subject: Re: crash in event_set_handler() when loading LKM
To: Manuel Bouyer <email@example.com>
From: Jeff Rizzo <firstname.lastname@example.org>
Date: 11/09/2005 14:35:26
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
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
>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!
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
-----END PGP SIGNATURE-----