Hi Aditya,
On Fri, Jul 18, 2025 at 6:45 PM Aditya Gupta <adityag(a)linux.ibm.com> wrote:
Ping. Any comments on this ?
Sorry for the late reply...
I haven't seen any code problems, but please wait for sometime so I
can do some test against the patch...
Thanks,
Tao Liu
Thanks,
- Aditya G
On 18/06/25 11:02, Aditya Gupta wrote:
> Few vmcores don't have vmcoreinfo elf note, such as those created using
> virsh-dump.
>
> On architectures such as PowerPC64, vmcoreinfo is mandatory to fetch the
> first_vmalloc_address, for vmcores of upstream linux, since crash-utility commit:
>
> commit 5b24e363a898 ("get vmalloc start address from vmcoreinfo")
>
> Try reading from the 'vmcoreinfo_data' symbol instead, if the vmcoreinfo
> crash tries to read in case of diskdump/netdump is empty/missing.
>
> The approach to read 'vmcoreinfo_data' was used for a live kernel, which can
be
> reused in the case of missing vmcoreinfo note also, as the
> 'vmcoreinfo_data' symbol is available with vmcore too
>
> Note though, till GDB interface is not initialised, reading from
> vmcoreinfo_data symbol is not done, so behaviour is same as previously
> with no vmcoreinfo (only till GDB interface is not initialised)
>
> Hence rename 'vmcoreinfo_read_string' in kernel.c to
> 'vmcoreinfo_read_from_memory', and use it in netdump.c and diskdump.c
> too.
>
> Reported-by: Anushree Mathur <anushree.mathur(a)linux.ibm.com>
> Reported-by: Kowshik Jois <kowsjois(a)linux.ibm.com>
> Tested-by: Anushree Mathur <anushree.mathur(a)linux.ibm.com>
> Tested-by: Kowshik Jois <kowsjois(a)linux.ibm.com>
> Signed-off-by: Aditya Gupta <adityag(a)linux.ibm.com>
> ...