Fwd: Kernel Panics & kernel controls
Fwd: Kernel Panics & kernel controls
- Subject: Fwd: Kernel Panics & kernel controls
- From: Greg <email@hidden>
- Date: Mon, 22 Jan 2007 00:17:46 -0500
Whoops, forgot to send it to the list again.
Begin forwarded message: Date: January 21, 2007 11:22:10 PM EST Subject: Re: Kernel Panics & kernel controls
I thought that your statements might have been the silver bullet but I don't think that I'm calling anything that implicitly consumes the mbuf chain before I free it. I think that the problem is occurring because ctl_enqueue is being called either too quickly or concurrently, so I will try to work around that (I was planning on doing it anyway) and see if that stops the kernel panics.
- Greg On Jan 19, 2007, at 3:46 PM, Matt Darland wrote: When you get the mbuf from the ctl_send handler your kext owns the mbuf and is responsible for disposal. However, disposal can mean things other than directly calling mbuf_freem(), e.g. ctl_enqueuembuf(), sock_sendmbuf(), or any other routine that implicitly consumes an mbuf chain.
Also, if you are modifying mbuf payloads, be aware of mbufs with 'external data' (often referred to as mbuf clusters). External data is payload data that is referenced by multiple mbufs, and you could be modifying data out from underneath another part of the OS.
---- Matt
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden