Thanks all for the help.
I've tried before to replace the MAP_PRIVATE to MAP_SHARED, but then the memory is mapped to 0xffffffff, and accessing the memory address later fails with segmentation fault (since when I add 0x24, it yields a pointer to 0x00000023)
Using the nopage operation, go me to no better results.
Then you haven't boterhed to read the mmap man page:
"RETURN VALUE On success, mmap returns a pointer to the mapped area. On error, MAP_FAILED (-1) is returned, and errno is set appropriately. On suc- cess, munmap returns 0, on failure -1, and errno is set (probably to EINVAL).:
In short the memory is *not* mapoped to 0xfffffff. You are getting an error condition (-1) which you failed to check in your code.
I'm willing to bet that you don't have the pages you're trying to access reserved with PageReserved() as Muli pointed out before.
Gilad
-- Gilad Ben-Yossef <[EMAIL PROTECTED]> Codefidence. A name you can trust(tm) Web: http://codefidence.com | SIP: [EMAIL PROTECTED] Tel: +972.9.8650475 ext. 201 | Fax: +972.9.8850643
"I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]