mmap

Mulyadi Santosa mulyadi.santosa at gmail.com
Thu Aug 23 10:18:17 EDT 2012


Hi...

On Thu, Aug 23, 2012 at 8:06 PM, Christophe Hauser
<christophe.hauser at supelec.fr> wrote:
> I often get:
> file = NULL
> flags = 0x0 (MAP_FILE)
> prot = 0x0 (PROT_NONE)
>
> I am wondering what is the use for mmap with MAP_FILE and PROT_NONE together ?
> Not sure how to interpret that ?

hmm, things that cross my mind:
- protecting low memory address (capturing null pointer abuse)

- stack guard...to catch buffer over flow

Maybe there are others.... CMIIW

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list