aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRadu Caragea <[email protected]>2013-08-21 20:55:59 +0300
committerLinus Torvalds <[email protected]>2013-08-22 10:19:35 -0700
commit41aacc1eea645c99edbe8fbcf78a97dc9b862adc (patch)
tree2f1a4a363b738d374c58ca2a0d520f2b0981bf67 /include/linux
parent5ea80f76a56605a190a7ea16846c82aa63dbd0aa (diff)
x86 get_unmapped_area: Access mmap_legacy_base through mm_struct member
This is the updated version of df54d6fa5427 ("x86 get_unmapped_area(): use proper mmap base for bottom-up direction") that only randomizes the mmap base address once. Signed-off-by: Radu Caragea <[email protected]> Reported-and-tested-by: Jeff Shorey <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Adrian Sendroiu <[email protected]> Cc: Greg KH <[email protected]> Cc: Kamal Mostafa <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index fb425aa16c01..faf4b7c1ad12 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -332,6 +332,7 @@ struct mm_struct {
unsigned long pgoff, unsigned long flags);
#endif
unsigned long mmap_base; /* base of mmap area */
+ unsigned long mmap_legacy_base; /* base of mmap area in bottom-up allocations */
unsigned long task_size; /* size of task vm space */
unsigned long highest_vm_end; /* highest vma end address */
pgd_t * pgd;