Lines Matching refs:hdr
347 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
1544 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
1561 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
1646 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
1661 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
2108 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
2109 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf()
2112 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
2120 size = info->sechdrs[info->hdr->e_shstrndx].sh_size; in copy_module_elf()
2369 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
2373 if (infosec >= info->hdr->e_shnum) in apply_relocations()
2434 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections()
2439 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
2472 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
2553 char *modinfo = (char *)info->hdr + infosec->sh_offset; in get_next_modinfo()
2704 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
2710 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
2774 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms()
2828 for (i = 1; i < info->hdr->e_shnum; i++) { in kmemleak_load_module()
2852 const void *mod = info->hdr; in module_sig_check()
2909 if (info->len < sizeof(*(info->hdr))) in elf_header_check()
2912 if (memcmp(info->hdr->e_ident, ELFMAG, SELFMAG) != 0 in elf_header_check()
2913 || info->hdr->e_type != ET_REL in elf_header_check()
2914 || !elf_check_arch(info->hdr) in elf_header_check()
2915 || info->hdr->e_shentsize != sizeof(Elf_Shdr)) in elf_header_check()
2918 if (info->hdr->e_shoff >= info->len in elf_header_check()
2919 || (info->hdr->e_shnum * sizeof(Elf_Shdr) > in elf_header_check()
2920 info->len - info->hdr->e_shoff)) in elf_header_check()
2984 if (info->len < sizeof(*(info->hdr))) in copy_module_from_user()
2992 info->hdr = __vmalloc(info->len, in copy_module_from_user()
2994 if (!info->hdr) in copy_module_from_user()
2997 if (copy_chunked_from_user(info->hdr, umod, info->len) != 0) { in copy_module_from_user()
2998 vfree(info->hdr); in copy_module_from_user()
3007 vfree(info->hdr); in free_copy()
3017 for (i = 1; i < info->hdr->e_shnum; i++) { in rewrite_section_headers()
3027 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
3056 info->sechdrs = (void *)info->hdr + info->hdr->e_shoff; in setup_load_info()
3057 info->secstrings = (void *)info->hdr in setup_load_info()
3058 + info->sechdrs[info->hdr->e_shstrndx].sh_offset; in setup_load_info()
3068 for (i = 1; i < info->hdr->e_shnum; i++) { in setup_load_info()
3072 info->strtab = (char *)info->hdr in setup_load_info()
3090 info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset; in setup_load_info()
3292 for (i = 0; i < info->hdr->e_shnum; i++) { in move_module()
3380 int __weak module_frob_arch_sections(Elf_Ehdr *hdr, in module_frob_arch_sections() argument
3420 err = module_frob_arch_sections(info->hdr, info->sechdrs, in layout_and_allocate()
3472 int __weak module_finalize(const Elf_Ehdr *hdr, in module_finalize() argument
3497 return module_finalize(info->hdr, info->sechdrs, mod); in post_relocation()
3739 module_bug_finalize(info->hdr, info->sechdrs, mod); in complete_formation()
4009 void *hdr; in SYSCALL_DEFINE3() local
4022 err = kernel_read_file_from_fd(fd, &hdr, &size, INT_MAX, in SYSCALL_DEFINE3()
4026 info.hdr = hdr; in SYSCALL_DEFINE3()