Home
last modified time | relevance | path

Searched refs:random_factor (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/arch/tile/mm/
Dmmap.c35 unsigned long random_factor = 0; in mmap_base() local
38 random_factor = get_random_int() % (1024*1024); in mmap_base()
45 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
61 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
69 random_factor = get_random_int() % (1<<8); in arch_pick_mmap_layout()
71 random_factor = get_random_int() % (1<<12); in arch_pick_mmap_layout()
73 random_factor <<= PAGE_SHIFT; in arch_pick_mmap_layout()
81 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
/linux-4.4.14/arch/arm64/mm/
Dmmap.c77 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
80 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
87 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
90 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/x86/mm/
Dmmap.c114 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
117 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
119 mm->mmap_legacy_base = mmap_legacy_base(random_factor); in arch_pick_mmap_layout()
125 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/powerpc/mm/
Dmmap.c87 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
90 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
100 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/mips/mm/
Dmmap.c161 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
164 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
167 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
170 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/arm/mm/
Dmmap.c184 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
187 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
190 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
193 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/s390/mm/
Dmmap.c230 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
233 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
240 mm->mmap_base = mmap_base_legacy(random_factor); in arch_pick_mmap_layout()
243 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/linux-4.4.14/arch/sparc/kernel/
Dsys_sparc_64.c278 unsigned long random_factor = mmap_rnd(); in arch_pick_mmap_layout() local
290 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
301 mm->mmap_base = PAGE_ALIGN(task_size - gap - random_factor); in arch_pick_mmap_layout()