summaryrefslogtreecommitdiff
path: root/kexec/crashdump-elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/crashdump-elf.c')
-rw-r--r--kexec/crashdump-elf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kexec/crashdump-elf.c b/kexec/crashdump-elf.c
index b8bb686..045f6b5 100644
--- a/kexec/crashdump-elf.c
+++ b/kexec/crashdump-elf.c
@@ -152,7 +152,7 @@ int FUNC(struct kexec_info *info,
bufp += sizeof(PHDR);
phdr->p_type = PT_NOTE;
phdr->p_flags = 0;
- phdr->p_offset = phdr->p_paddr = notes_addr;
+ phdr->p_offset = phdr->p_paddr = notes_addr - K2_ALIAS_OFFSET;
phdr->p_vaddr = 0;
phdr->p_filesz = phdr->p_memsz = notes_len;
/* Do we need any alignment of segments? */
@@ -203,6 +203,8 @@ int FUNC(struct kexec_info *info,
continue;
mstart = range->start;
mend = range->end;
+ if (mend >= 0x100000000ULL)
+ continue;
if (!mstart && !mend)
continue;
phdr = (PHDR *) bufp;