]> err.no Git - linux-2.6/commit
[PATCH] prevent NULL mmap in topdown model
authorLinus Torvalds <torvalds@osdl.org>
Wed, 18 May 2005 22:39:33 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 19 May 2005 14:46:36 +0000 (07:46 -0700)
commit49a43876b935c811cfd29d8fe998a6912a1cc5c4
treec7d7a187a2125518e655dfeadffd38156239ffc3
parent05d3794aa8bd3b2c9f7920a05003c331cdeb75c5
[PATCH] prevent NULL mmap in topdown model

Prevent the topdown allocator from allocating mmap areas all the way
down to address zero.

We still allow a MAP_FIXED mapping of page 0 (needed for various things,
ranging from Wine and DOSEMU to people who want to allow speculative
loads off a NULL pointer).

Tested by Chris Wright.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c