Lines Matching refs:bprm

68 static int load_elf_binary(struct linux_binprm *bprm);
172 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables() argument
177 unsigned long p = bprm->p; in create_elf_tables()
178 int argc = bprm->argc; in create_elf_tables()
179 int envc = bprm->envc; in create_elf_tables()
264 if (bprm->interp_flags & BINPRM_FLAGS_PRESERVE_ARGV0) in create_elf_tables()
272 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_tables()
277 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
286 if (bprm->have_execfd) { in create_elf_tables()
287 NEW_AUX_ENT(AT_EXECFD, bprm->execfd); in create_elf_tables()
301 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
305 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
306 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
308 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
318 vma = find_extend_vma(mm, bprm->p); in create_elf_tables()
823 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
840 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary()
857 if (!bprm->file->f_op->mmap) in load_elf_binary()
860 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
889 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary()
908 would_dump(bprm, interpreter); in load_elf_binary()
941 bprm->file, false, in load_elf_binary()
984 retval = parse_elf_properties(interpreter ?: bprm->file, in load_elf_binary()
1001 retval = begin_new_exec(bprm); in load_elf_binary()
1014 setup_new_exec(bprm); in load_elf_binary()
1018 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
1141 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1252 retval = ARCH_SETUP_ADDITIONAL_PAGES(bprm, elf_ex, !!interpreter); in load_elf_binary()
1257 retval = create_elf_tables(bprm, elf_ex, in load_elf_binary()
1267 mm->start_stack = bprm->p; in load_elf_binary()
1312 finalize_exec(bprm); in load_elf_binary()
1313 START_THREAD(elf_ex, regs, elf_entry, bprm->p); in load_elf_binary()