Re: mmap: is default non-populating behavior stable?

From: Alan Cox
Date: Wed Nov 05 2008 - 11:54:53 EST


> (Every year or so we do wonder whether to change an extending mremap
> of a MAP_SHARED|MAP_ANONYMOUS object to extend the object itself instead
> of just SIGBUSing on the extension: but I've so far remained conservative
> about that, and Eugene appears to be thinking of more ordinary files.)

Try an mremap of a VM_GROWS* mapping and all the other things of this
nature. I would say our current behaviour is not what might be expected
by users. The extending an object case is just one example of weird
behaviour.

Alan


--
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/