Searched refs:stack_base (Results 1 – 2 of 2) sorted by relevance
80 unsigned long stack_base; in mmap_upper_limit() local83 stack_base = rlim_stack ? rlim_stack->rlim_max in mmap_upper_limit()85 if (stack_base > STACK_SIZE_MAX) in mmap_upper_limit()86 stack_base = STACK_SIZE_MAX; in mmap_upper_limit()89 stack_base += (STACK_RND_MASK << PAGE_SHIFT); in mmap_upper_limit()91 return PAGE_ALIGN(STACK_TOP - stack_base); in mmap_upper_limit()
697 unsigned long stack_base; in setup_arg_pages() local704 stack_base = bprm->rlim_stack.rlim_max; in setup_arg_pages()705 if (stack_base > STACK_SIZE_MAX) in setup_arg_pages()706 stack_base = STACK_SIZE_MAX; in setup_arg_pages()709 stack_base += (STACK_RND_MASK << PAGE_SHIFT); in setup_arg_pages()712 if (vma->vm_end - vma->vm_start > stack_base) in setup_arg_pages()715 stack_base = PAGE_ALIGN(stack_top - stack_base); in setup_arg_pages()717 stack_shift = vma->vm_start - stack_base; in setup_arg_pages()780 stack_base = vma->vm_start + rlim_stack; in setup_arg_pages()782 stack_base = vma->vm_end + stack_expand; in setup_arg_pages()[all …]