• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Kernel Panics & kernel controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

From: Greg <email@hidden>
Date: January 21, 2007 11:22:10 PM EST
To: Matt Darland <email@hidden>
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

  • Prev by Date: Re: Darwin-kernel Digest, Vol 4, Issue 20
  • Next by Date: Re: Kernel Panics & kernel controls
  • Previous by thread: Re: Kernel Panics & kernel controls
  • Next by thread: Re: Darwin-kernel Digest, Vol 4, Issue 20
  • Index(es):
    • Date
    • Thread