Lines Matching refs:bprm

69 static int load_elf_binary(struct linux_binprm *bprm);
175 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables() argument
180 unsigned long p = bprm->p; in create_elf_tables()
181 int argc = bprm->argc; in create_elf_tables()
182 int envc = bprm->envc; in create_elf_tables()
267 if (bprm->interp_flags & BINPRM_FLAGS_PRESERVE_ARGV0) in create_elf_tables()
275 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_tables()
280 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
289 if (bprm->have_execfd) { in create_elf_tables()
290 NEW_AUX_ENT(AT_EXECFD, bprm->execfd); in create_elf_tables()
308 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
312 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
313 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
315 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
325 vma = find_extend_vma_locked(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()
1165 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1286 retval = ARCH_SETUP_ADDITIONAL_PAGES(bprm, elf_ex, !!interpreter); in load_elf_binary()
1291 retval = create_elf_tables(bprm, elf_ex, interp_load_addr, in load_elf_binary()
1301 mm->start_stack = bprm->p; in load_elf_binary()
1346 finalize_exec(bprm); in load_elf_binary()
1347 START_THREAD(elf_ex, regs, elf_entry, bprm->p); in load_elf_binary()