Kernel stack size and kernel memory debugger
Kernel stack size and kernel memory debugger
- Subject: Kernel stack size and kernel memory debugger
- From: mogambo <email@hidden>
- Date: Mon, 23 Nov 2009 23:11:36 -0800
Hi guys,
I am debugging a couple of issues with a filesystem driver kext on 64-bit 10.6. One of them looks like stack corruption. A pointer to an array of two ints on stack in fnA() is passed to a fnB(). When fnB() tries writing to it, it gets a kernel trap. Looking at the address of the passed in array in fnB() reveals that it is corrupt. If I compare the esp between frame 0 and frame 20 in the kernel coredump, the difference is about 6400 bytes. I do not think the kernel stack will be smaller than that, but in general, is there an easy way to check kernel stack size?
And, while I am on the subject of corruption, is there a kernel memory debugger in Mac OS/bsd? I have seen this questions being asked on the forum, but did not find any answers.
Thanks for any help you can offer.
-s.
_______________________________________________
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