Go to the documentation of this file.
19 #include <linux/elf.h>
22 #include <linux/mman.h>
23 #include <linux/export.h>
24 #include <linux/shm.h>
25 #include <linux/sched.h>
27 #include <linux/personality.h>
28 #include <linux/random.h>
30 #include <asm/cputype.h>
36 #define MIN_GAP (SZ_128M + ((STACK_RND_MASK << PAGE_SHIFT) + 1))
37 #define MAX_GAP (STACK_TOP/6*5)
39 static int mmap_is_legacy(
void)
58 static unsigned long mmap_rnd(
void)
60 unsigned long rnd = 0;
90 if (mmap_is_legacy()) {
125 #ifdef CONFIG_STRICT_DEVMEM