From: Paul Mundt Date: Tue, 9 Jun 2009 08:48:56 +0000 (+0900) Subject: nommu: Provide mmap_min_addr definition. X-Git-Tag: v2.6.30.4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57bee88245247744cd953ab3c410ba637ba6e0c3;p=thirdparty%2Fkernel%2Fstable.git nommu: Provide mmap_min_addr definition. commit 35f2c2f6f6ae13ef23c4f68e6d3073753077ca43 upstream. With the "security: use mmap_min_addr indepedently of security models" change, mmap_min_addr is used in common areas, which susbsequently blows up the nommu build. This stubs in the definition in the nommu case as well. Signed-off-by: Paul Mundt Cc: Mike Frysinger Signed-off-by: Greg Kroah-Hartman Signed-off-by: James Morris --- diff --git a/mm/nommu.c b/mm/nommu.c index b571ef707428c..2fd2ad5da98e5 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -69,6 +69,9 @@ int sysctl_max_map_count = DEFAULT_MAX_MAP_COUNT; int sysctl_nr_trim_pages = CONFIG_NOMMU_INITIAL_TRIM_EXCESS; int heap_stack_gap = 0; +/* amount of vm to protect from userspace access */ +unsigned long mmap_min_addr = CONFIG_DEFAULT_MMAP_MIN_ADDR; + atomic_long_t mmap_pages_allocated; EXPORT_SYMBOL(mem_map);