Re: kernel panic on readBytes
Re: kernel panic on readBytes
- Subject: Re: kernel panic on readBytes
- From: Michael Smith <email@hidden>
- Date: Fri, 11 Apr 2008 22:51:17 -0700
On Apr 10, 2008, at 8:00 AM, Timur Alperovich wrote:
Hey Timur,
Where does the physical address in inStruct->offset come from?
getPhysicalSegment()?
The address is passed in from userspace. I wrote a little daemon that
simply goes from 0x0 to the highest possible address (I figure that
out by getting the maximum amount of ram on the machine through a
sysctl call) and pass it to the kernel extension. The kernel then
returns a 32-bit hash value for each page. I thought that should work
ok, but is it a problem?
Yes, that's definitely a problem.
There's no guarantee that physical memory is addressed starting at
zero, or that the kernel owns all of it.
You aren't allowed to do that; unless the kernel gives you physical
memory, leave it alone.
= Mike
_______________________________________________
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