Lines Matching refs:stack_len
430 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
445 stack_len = ntohl(hdr->stack_size); in load_flat_file()
447 stack_len += *extra_stack; in load_flat_file()
448 *extra_stack = stack_len; in load_flat_file()
508 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
549 extra = max_t(unsigned long, bss_len + stack_len, in load_flat_file()
591 data_len + bss_len + stack_len, datapos); in load_flat_file()
733 current->mm->context.end_brk = memp + memp_size - stack_len; in load_flat_file()
861 (memp + memp_size - stack_len - /* end brk */ in load_flat_file()
863 stack_len)) in load_flat_file()
926 unsigned long stack_len = 0; in load_flat_binary() local
941 stack_len += PAGE_SIZE * MAX_ARG_PAGES - bprm->p; /* the strings */ in load_flat_binary()
943 stack_len += (bprm->argc + 1) * sizeof(char *); /* the argv array */ in load_flat_binary()
944 stack_len += (bprm->envc + 1) * sizeof(char *); /* the envp array */ in load_flat_binary()
945 stack_len = ALIGN(stack_len, FLAT_STACK_ALIGN); in load_flat_binary()
947 res = load_flat_file(bprm, &libinfo, 0, &stack_len); in load_flat_binary()
977 ((current->mm->context.end_brk + stack_len + 3) & ~3) - 4; in load_flat_binary()