Go to the documentation of this file.
27 #include <linux/personality.h>
29 #include <linux/random.h>
31 #include <linux/sched.h>
38 static unsigned int stack_maxrandom_size(
void)
54 #define MIN_GAP (128*1024*1024UL + stack_maxrandom_size())
55 #define MAX_GAP (TASK_SIZE/6*5)
57 static int mmap_is_legacy(
void)
68 static unsigned long mmap_rnd(
void)
70 unsigned long rnd = 0;
85 static unsigned long mmap_base(
void)
101 static unsigned long mmap_legacy_base(
void)
115 if (mmap_is_legacy()) {