[PATCH v2 1/1] Calculate offset to field 'init_uts_ns.name'

Alexander Egorenkov egorenar at linux.ibm.com
Thu Sep 17 07:03:51 EDT 2020


HAGIO KAZUHITO(萩尾 一仁)	<k-hagio-ab at nec.com> writes:


> Thank you for catching this and the patch.
>
> but do you know the kernel patch corresponding to this patch, i.e. adds
> the OFFSET(init_uts_ns.name) (strictly, OFFSET(uts_namespace.name) probably)
> entry to vmcoreinfo?  The makedumpfile usually just read it from vmcore,
> so cannot calculate without debug info in vmlinux.
>
> If it has not been posted yet, we need to do.  The best situation is
> that the patch is merged into linux-next first and then merged into
> mainline together with the commit 9a56493f6942.
>
> Is it possible for you?  otherwise, anyone or I might try.
>
> Thanks,
> Kazu
>

Hi Kazu,

sorry, i'm new to makedumpfile and apparently still not understanding
everything correctly. I checked the *linux-next* repo and couldn't find
anything which adds *init_uts_ns.name*. I only see

	VMCOREINFO_OSRELEASE(init_uts_ns.name.release);

	VMCOREINFO_SYMBOL(init_uts_ns);

I checked kernel/crash_core.c, this is the right place to check, right ?
But my fix seems to work with a crash dump from linux-next.

Thanks
Regards
Alex




More information about the kexec mailing list