Home
last modified time | relevance | path

Searched refs:phdr_size (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/kernel/
H A Dkexec_elf.c79 size_t phdr_size; in elf_is_ehdr_sane() local
85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_is_ehdr_sane()
88 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) { in elf_is_ehdr_sane()
91 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane()
254 size_t phdr_size, i; in elf_read_phdrs() local
261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_read_phdrs()
263 elf_info->proghdrs = kzalloc(phdr_size, GFP_KERNEL); in elf_read_phdrs()
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c201 size_t phdr_size; in check_core_file() local
216 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()
219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()
220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()
224 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()
229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()