Re: [PATCH] x86/kexec: Initialize the value of ident mapping offset

From: Borislav Petkov
Date: Fri Nov 06 2020 - 10:23:01 EST


On Thu, Nov 05, 2020 at 10:30:05PM -0500, Hewenliang wrote:
> From: hewenliang <hewenliang4@xxxxxxxxxx>
>
> It is necessary to initialize the value of ident mapping offset.

Why is it necessary?

> This can not only avoid using dirty data,

What happens to designated initializers when some of the members are not
explicitly mentioned?

Hint:

$ make arch/x86/kernel/machine_kexec_64.s

and look at that file before your patch.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette