Re: [PATCH v7 1/3] efi/x86: Fix EFI memory map corruption with kexec
From: Borislav Petkov
Date: Tue Jun 04 2024 - 05:44:54 EST
On Tue, Jun 04, 2024 at 09:23:58AM +0800, Dave Young wrote:
> kexec_in_progress is only for checking if this is in a reboot (kexec) code path.
> But eif_mem_reserve is only called during the boot time so checking
> kexec_in_progress is meaningless here.
> current_kernel_is_booted_via_kexec != is_rebooting_with_kexec
That's exactly what I wanna check: whether this is a kexec-ed kernel. Or
is there a better helper for that?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette