[makedumpfile PATCH] check for invalid physical address of /proc/kcore when make ELF format dumpfile
HAGIO KAZUHITO(萩尾 一仁)
k-hagio-ab at nec.com
Mon Jun 21 19:57:59 PDT 2021
> Previously when executing makedumpfile with -E option against /proc/kcore,
> makedumpfile will fail:
> $ sudo makedumpfile -E -d 31 /proc/kcore vmcore
> write_elf_load_segment: Can't convert physaddr(ffffffffffffffff) to an
> makedumpfile Failed.
> It's because /proc/kcore contains PT_LOAD program headers which have
> physaddr(ffffffffffffffff). With -E option, makedumpfile will try to convert
> the physaddr to an offset and fails.
> In this patch, let's skip the PT_LOAD program headers which have such physaddr.
> Signed-off-by: Tao Liu <ltao at redhat.com>
Thanks, applied with adjusting to the previous similar patch.
More information about the kexec