Re: [GIT PULL] x86/boot changes for v6.10
From: Ard Biesheuvel
Date: Tue May 14 2024 - 03:28:50 EST
On Tue, 14 May 2024 at 03:03, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Sun, 12 May 2024 at 23:51, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> >
> > - Re-introduce a bootloader quirk wrt. CR4 handling
>
> I've pulled this, but shouldn't the compressed boot also just stop
> setting the G flag that it didn't understand?
>
I agree. But not setting CR4 to a known value is what caused the
regression, and that could cause other problems down the road, so
fixing it was arguably more important.
More than happy to send another patch to clear the G bit from the page
table entries created by the decompressor, but at this point, it
shouldn't make a difference.