Home
last modified time | relevance | path

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

/arch/tile/mm/
Dmmap.c36 unsigned long random_factor = 0; in mmap_base() local
39 random_factor = get_random_int() % (1024*1024); in mmap_base()
46 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
62 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
70 random_factor = get_random_int() % (1<<8); in arch_pick_mmap_layout()
72 random_factor = get_random_int() % (1<<12); in arch_pick_mmap_layout()
74 random_factor <<= PAGE_SHIFT; in arch_pick_mmap_layout()
82 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
/arch/arm64/mm/
Dmmap.c88 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
91 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
98 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
101 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/arch/powerpc/mm/
Dmmap.c209 unsigned long random_factor) in radix__arch_pick_mmap_layout() argument
215 mm->mmap_base = mmap_base(random_factor); in radix__arch_pick_mmap_layout()
222 unsigned long random_factor);
230 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
233 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
236 return radix__arch_pick_mmap_layout(mm, random_factor); in arch_pick_mmap_layout()
245 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/arch/mips/mm/
Dmmap.c163 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
166 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
169 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
172 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/arch/x86/mm/
Dmmap.c127 unsigned long random_factor, unsigned long task_size) in arch_pick_mmap_base() argument
129 *legacy_base = mmap_legacy_base(random_factor, task_size); in arch_pick_mmap_base()
133 *base = mmap_base(random_factor, task_size); in arch_pick_mmap_base()
/arch/s390/mm/
Dmmap.c203 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
206 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
213 mm->mmap_base = mmap_base_legacy(random_factor); in arch_pick_mmap_layout()
216 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/arch/arm/mm/
Dmmap.c185 unsigned long random_factor = 0UL; in arch_pick_mmap_layout() local
188 random_factor = arch_mmap_rnd(); in arch_pick_mmap_layout()
191 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
194 mm->mmap_base = mmap_base(random_factor); in arch_pick_mmap_layout()
/arch/sparc/kernel/
Dsys_sparc_64.c281 unsigned long random_factor = mmap_rnd(); in arch_pick_mmap_layout() local
293 mm->mmap_base = TASK_UNMAPPED_BASE + random_factor; in arch_pick_mmap_layout()
304 mm->mmap_base = PAGE_ALIGN(task_size - gap - random_factor); in arch_pick_mmap_layout()