RE: [makedumpfile PATCH] check for invalid physical address of /proc/kcore when make ELF format dumpfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxx>

Thanks, applied with adjusting to the previous similar patch.
https://github.com/makedumpfile/makedumpfile/commit/9a6f589d99dcef114c89fde992157f5467028c8f

Kazu


_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux