Home
last modified time | relevance | path

Searched refs:rlim_stack (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/mm/
Dmmap.c28 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 …]
/kernel/linux/linux-5.10/arch/x86/mm/
Dmmap.c83 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()
/kernel/linux/linux-5.10/arch/s390/mm/
Dmmap.c29 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()
/kernel/linux/linux-5.10/mm/
Dutil.c390 static int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() argument
395 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy()
408 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) in mmap_base() argument
410 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
429 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument
436 if (mmap_is_legacy(rlim_stack)) { in arch_pick_mmap_layout()
440 mm->mmap_base = mmap_base(random_factor, rlim_stack); in arch_pick_mmap_layout()
445 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() argument
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsys_parisc.c65 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()
/kernel/linux/linux-5.10/fs/
Dexec.c376 bprm->rlim_stack = current->signal->rlim[RLIMIT_STACK]; in bprm_mm_init()
486 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in bprm_stack_limits()
761 unsigned long rlim_stack; in setup_arg_pages() local
765 stack_base = bprm->rlim_stack.rlim_max; in setup_arg_pages()
843 rlim_stack = bprm->rlim_stack.rlim_cur & PAGE_MASK; in setup_arg_pages()
845 if (stack_size + stack_expand > rlim_stack) in setup_arg_pages()
846 stack_base = vma->vm_start + rlim_stack; in setup_arg_pages()
850 if (stack_size + stack_expand > rlim_stack) in setup_arg_pages()
851 stack_base = vma->vm_end - rlim_stack; in setup_arg_pages()
1342 if (bprm->rlim_stack.rlim_cur > _STK_LIM) in begin_new_exec()
[all …]
/kernel/linux/linux-5.10/include/linux/sched/
Dmm.h118 struct rlimit *rlim_stack);
128 struct rlimit *rlim_stack) {} in arch_pick_mmap_layout() argument
/kernel/linux/linux-5.10/include/linux/
Dbinfmts.h64 struct rlimit rlim_stack; /* Saved RLIMIT_STACK used during exec. */ member
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dsys_sparc_64.c280 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()