Lines Matching refs:task_size
41 static unsigned long stack_maxrandom_size(unsigned long task_size) in stack_maxrandom_size() argument
45 max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit()); in stack_maxrandom_size()
82 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, in mmap_base() argument
86 unsigned long pad = stack_maxrandom_size(task_size) + stack_guard_gap; in mmap_base()
98 gap_max = (task_size / 6) * 5; in mmap_base()
105 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
109 unsigned long task_size) in mmap_legacy_base() argument
111 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base()
119 unsigned long random_factor, unsigned long task_size, in arch_pick_mmap_base() argument
122 *legacy_base = mmap_legacy_base(random_factor, task_size); in arch_pick_mmap_base()
126 *base = mmap_base(random_factor, task_size, rlim_stack); in arch_pick_mmap_base()