Searched refs:rlim_stack (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/arch/powerpc/mm/ |
D | mmap.c | 28 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() argument 33 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy() 66 struct rlimit *rlim_stack) in mmap_base() argument 68 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() 187 struct rlimit *rlim_stack) in radix__arch_pick_mmap_layout() argument 189 if (mmap_is_legacy(rlim_stack)) { in radix__arch_pick_mmap_layout() 193 mm->mmap_base = mmap_base(random_factor, rlim_stack); in radix__arch_pick_mmap_layout() 201 struct rlimit *rlim_stack); 207 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 216 rlim_stack); in arch_pick_mmap_layout() [all …]
|
/Linux-v5.10/arch/x86/mm/ |
D | mmap.c | 83 struct rlimit *rlim_stack) in mmap_base() argument 85 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() 120 struct rlimit *rlim_stack) in arch_pick_mmap_base() argument 126 *base = mmap_base(random_factor, task_size, rlim_stack); in arch_pick_mmap_base() 129 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 138 rlim_stack); in arch_pick_mmap_layout() 149 rlim_stack); in arch_pick_mmap_layout()
|
/Linux-v5.10/arch/s390/mm/ |
D | mmap.c | 29 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() argument 33 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy() 49 struct rlimit *rlim_stack) in mmap_base() argument 51 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() 172 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 183 if (mmap_is_legacy(rlim_stack)) { in arch_pick_mmap_layout() 187 mm->mmap_base = mmap_base(random_factor, rlim_stack); in arch_pick_mmap_layout()
|
/Linux-v5.10/mm/ |
D | util.c | 358 static int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() argument 363 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy() 376 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) in mmap_base() argument 378 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() 397 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 404 if (mmap_is_legacy(rlim_stack)) { in arch_pick_mmap_layout() 408 mm->mmap_base = mmap_base(random_factor, rlim_stack); in arch_pick_mmap_layout() 413 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument
|
/Linux-v5.10/arch/parisc/kernel/ |
D | sys_parisc.c | 65 static unsigned long mmap_upper_limit(struct rlimit *rlim_stack) in mmap_upper_limit() argument 70 stack_base = rlim_stack ? rlim_stack->rlim_max in mmap_upper_limit() 242 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 245 mm->mmap_base = mmap_upper_limit(rlim_stack); in arch_pick_mmap_layout()
|
/Linux-v5.10/fs/ |
D | exec.c | 375 bprm->rlim_stack = current->signal->rlim[RLIMIT_STACK]; in bprm_mm_init() 485 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in bprm_stack_limits() 754 unsigned long rlim_stack; in setup_arg_pages() local 758 stack_base = bprm->rlim_stack.rlim_max; in setup_arg_pages() 836 rlim_stack = bprm->rlim_stack.rlim_cur & PAGE_MASK; in setup_arg_pages() 838 if (stack_size + stack_expand > rlim_stack) in setup_arg_pages() 839 stack_base = vma->vm_start + rlim_stack; in setup_arg_pages() 843 if (stack_size + stack_expand > rlim_stack) in setup_arg_pages() 844 stack_base = vma->vm_end - rlim_stack; in setup_arg_pages() 1324 if (bprm->rlim_stack.rlim_cur > _STK_LIM) in begin_new_exec() [all …]
|
/Linux-v5.10/include/linux/sched/ |
D | mm.h | 110 struct rlimit *rlim_stack); 120 struct rlimit *rlim_stack) {} in arch_pick_mmap_layout() argument
|
/Linux-v5.10/include/linux/ |
D | binfmts.h | 64 struct rlimit rlim_stack; /* Saved RLIMIT_STACK used during exec. */ member
|
/Linux-v5.10/arch/sparc/kernel/ |
D | sys_sparc_64.c | 280 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument 289 gap = rlim_stack->rlim_cur; in arch_pick_mmap_layout()
|