linux-user: mmap_reserve() not controlled by RESERVED_VA
authoramateur <tianlei.zhao@gmail.com>
Tue, 14 Sep 2010 05:22:34 +0000 (13:22 +0800)
committerRiku Voipio <riku.voipio@nokia.com>
Fri, 3 Dec 2010 13:09:38 +0000 (15:09 +0200)
commitc65ffe6d6ca8b156e729e81054ca7597864354a9
treed95b90fb8d6a1338ba117ec544be5c71099c27f5
parentb0e102dd22e7a158fa3dc4148ab6c2e78b363071
linux-user: mmap_reserve() not controlled by RESERVED_VA

mmap_reserve() should be called only when RESERVED_VA is enabled.
Otherwise, unmaped virtual address space will never be reusable. This
bug will exhaust virtual address space in extreme conditions.

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
linux-user/mmap.c