Re: [PATCH v2 0/2] x86: Fix kexec 5-level to 4-level paging transition

From: Kiryl Shutsemau

Date: Thu Oct 30 2025 - 06:23:16 EST


On Wed, Oct 29, 2025 at 09:48:14PM +0100, Borislav Petkov wrote:
> On Tue, Oct 28, 2025 at 10:55:55AM +0000, Usama Arif wrote:
> > This series addresses critical bugs in the kexec path when transitioning
> > from a kernel using 5-level page tables to one using 4-level page tables.
>
> Out of curiosity: what is the real-life use case for this?
>
> Judging by the Reported-by's I guess Meta is doing some kexec-ing into default
> kernels which are 4-level so that they can work on any machine ...
>
> Close?

Older kernels in our fleet run with 5-level paging disabled. The newer
one enables it. Machines need to switch between kernel version from time
to time for different reasons. Switching from the newer kernel to an
older one triggered the issue.

--
Kiryl Shutsemau / Kirill A. Shutemov