Skip to content

Commit

Permalink
nommu: Provide mmap_min_addr definition.
Browse files Browse the repository at this point in the history
commit 35f2c2f 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 <lethal@linux-sh.org>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Paul Mundt authored and Greg Kroah-Hartman committed Jul 30, 2009
1 parent 3b64409 commit 57bee88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57bee88

Please sign in to comment.