Lines Matching refs:bprm

69 static int load_elf_binary(struct linux_binprm *bprm);
149 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables() argument
154 unsigned long p = bprm->p; in create_elf_tables()
155 int argc = bprm->argc; in create_elf_tables()
156 int envc = bprm->envc; in create_elf_tables()
241 if (bprm->interp_flags & BINPRM_FLAGS_PRESERVE_ARGV0) in create_elf_tables()
249 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_tables()
260 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
269 if (bprm->have_execfd) { in create_elf_tables()
270 NEW_AUX_ENT(AT_EXECFD, bprm->execfd); in create_elf_tables()
288 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
292 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
293 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
295 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
305 vma = find_extend_vma_locked(mm, bprm->p); in create_elf_tables()
817 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
834 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary()
851 if (!can_mmap_file(bprm->file)) in load_elf_binary()
854 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
883 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary()
902 would_dump(bprm, interpreter); in load_elf_binary()
935 bprm->file, false, in load_elf_binary()
978 retval = parse_elf_properties(interpreter ?: bprm->file, in load_elf_binary()
995 retval = begin_new_exec(bprm); in load_elf_binary()
1009 setup_new_exec(bprm); in load_elf_binary()
1013 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
1147 load_bias = elf_load(bprm->file, 0, elf_ppnt, in load_elf_binary()
1173 error = elf_load(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1276 retval = ARCH_SETUP_ADDITIONAL_PAGES(bprm, elf_ex, !!interpreter); in load_elf_binary()
1281 retval = create_elf_tables(bprm, elf_ex, interp_load_addr, in load_elf_binary()
1291 mm->start_stack = bprm->p; in load_elf_binary()
1361 finalize_exec(bprm); in load_elf_binary()
1362 START_THREAD(elf_ex, regs, elf_entry, bprm->p); in load_elf_binary()