guard page for stacks that grow upwards
authorLuck, Tony <tony.luck@intel.com>
Tue, 24 Aug 2010 18:44:18 +0000 (11:44 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:21:34 +0000 (17:21 -0700)
commitc837b58c0ea48760cc83a2e3ffddd92ac88dd156
tree9e7b1b1dd45ee3f8396b5a0b40de7d9a22a3dba4
parent288841853e8c83bba82a35937ec19eba59f14548
guard page for stacks that grow upwards

commit 8ca3eb08097f6839b2206e2242db4179aee3cfb3 upstream.

pa-risc and ia64 have stacks that grow upwards. Check that
they do not run into other mappings. By making VM_GROWSUP
0x0 on architectures that do not ever use it, we can avoid
some unpleasant #ifdefs in check_stack_guard_page().

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/mm.h
mm/memory.c
mm/mmap.c