Re: efi boot failures due to PTI with 32 bit builds and Intel CPUs

From: Linus Torvalds
Date: Thu Aug 30 2018 - 14:22:04 EST


On Thu, Aug 30, 2018 at 11:08 AM Joerg Roedel <jroedel@xxxxxxx> wrote:
>
> Without a mapped GDT the #PF and #DF handlers also can't be started, so
> the machine triple-faults. Below diff fixes it for me, I'll send a
> proper patch tomorrow.

Hmm. Is there any reason why this code doesn't just use

load_fixmap_gdt(0);

and shouldn't it do it after loading the new %cr3?

Linus