Home
last modified time | relevance | path

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

/linux-6.15/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()
/linux-6.15/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c172 size_t phdr_size; in check_core_file() local
187 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()
190 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()
191 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()
195 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()
200 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()