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

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

Completed in 122 milliseconds