diff options
author | Luck, Tony <tony.luck@intel.com> | 2010-08-24 14:44:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-24 15:13:20 -0400 |
commit | 8ca3eb08097f6839b2206e2242db4179aee3cfb3 (patch) | |
tree | 32b9f033230d615d248fa0bbfa1a0c644a422ed8 /mm/mmap.c | |
parent | 9559fcdbff4f93d29af04478bbc48294519424f5 (diff) |
guard page for stacks that grow upwards
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>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1716,9 +1716,6 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns | |||
1716 | * PA-RISC uses this for its stack; IA64 for its Register Backing Store. | 1716 | * PA-RISC uses this for its stack; IA64 for its Register Backing Store. |
1717 | * vma is the last one with address > vma->vm_end. Have to extend vma. | 1717 | * vma is the last one with address > vma->vm_end. Have to extend vma. |
1718 | */ | 1718 | */ |
1719 | #ifndef CONFIG_IA64 | ||
1720 | static | ||
1721 | #endif | ||
1722 | int expand_upwards(struct vm_area_struct *vma, unsigned long address) | 1719 | int expand_upwards(struct vm_area_struct *vma, unsigned long address) |
1723 | { | 1720 | { |
1724 | int error; | 1721 | int error; |