Re: [PATCH] prevent NULL mmap in topdown model

Chris Wright
2005-05-19T08:23:45Z

* Arjan van de Ven (arjan@infradead.org) wrote:
> On Wed, 2005-05-18 at 23:46 -0700, Chris Wright wrote:
> > I gave it a quick and simple test. Worked as expected. Last page got
> > mapped at 0x1000, leaving first page unmapped. Of course, either with
> > MAP_FIXED or w/out MAP_FIXED but proper hint (like -1) you can still
> > map first page. This isn't to say I was extra creative in testing.
>
> sure. Making it *impossible* to mmap that page is bad. People should be
> able to do that if they really want to, just doing it if they don't ask
> for it is bad.

Heh, that was actually my intended point ;-) At any rate, you made it
clearer, thanks.