• Home
  • Raw
  • Download

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()
269 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_tables()
274 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
283 if (bprm->have_execfd) { in create_elf_tables()
284 NEW_AUX_ENT(AT_EXECFD, bprm->execfd); in create_elf_tables()
298 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
302 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
303 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
305 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
315 vma = find_extend_vma(mm, bprm->p); in create_elf_tables()
820 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
837 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary()
854 if (!bprm->file->f_op->mmap) in load_elf_binary()
857 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
886 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary()
905 would_dump(bprm, interpreter); in load_elf_binary()
938 bprm->file, false, in load_elf_binary()
981 retval = parse_elf_properties(interpreter ?: bprm->file, in load_elf_binary()
998 retval = begin_new_exec(bprm); in load_elf_binary()
1011 setup_new_exec(bprm); in load_elf_binary()
1015 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
1143 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1254 retval = arch_setup_additional_pages(bprm, !!interpreter); in load_elf_binary()
1259 retval = create_elf_tables(bprm, elf_ex, in load_elf_binary()
1269 mm->start_stack = bprm->p; in load_elf_binary()
1314 finalize_exec(bprm); in load_elf_binary()
1315 start_thread(regs, elf_entry, bprm->p); in load_elf_binary()