Re: heap-stack-gap for 2.6

From: Alan Cox
Date: Wed Sep 29 2004 - 10:32:16 EST


On Mer, 2004-09-29 at 15:11, Andrea Arcangeli wrote:
> > MAP_FIXED is to be used only on things YOU mmaped before.
>
> where is that written?

MAP_FIXED is for very very special cases only. You can't combine
MAP_FIXED with glibc for example because the memory allocators may clash
with it. You can use it to map over an existing object but that is about
it.

As the man page says

"Use of this option is discouraged."


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/