Lines Matching refs:task_size
42 static unsigned long stack_maxrandom_size(unsigned long task_size) in stack_maxrandom_size() argument
46 max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit()); in stack_maxrandom_size()
83 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, in mmap_base() argument
87 unsigned long pad = stack_maxrandom_size(task_size) + stack_guard_gap; in mmap_base()
99 gap_max = (task_size / 6) * 5; in mmap_base()
106 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
110 unsigned long task_size) in mmap_legacy_base() argument
112 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base()
120 unsigned long random_factor, unsigned long task_size, in arch_pick_mmap_base() argument
123 *legacy_base = mmap_legacy_base(random_factor, task_size); in arch_pick_mmap_base()
127 *base = mmap_base(random_factor, task_size, rlim_stack); in arch_pick_mmap_base()