[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


-----Original Message-----
> 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
>     offset.
> 
>     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.
https://github.com/makedumpfile/makedumpfile/commit/9a6f589d99dcef114c89fde992157f5467028c8f

Kazu




More information about the kexec mailing list