Re: [PATCH] x86: efi: avoid BUILD_BUG_ON() for non-constant p4d_index
From: Borislav Petkov
Date: Wed Jan 20 2021 - 07:36:34 EST
On Wed, Jan 20, 2021 at 10:33:43AM +0100, Ard Biesheuvel wrote:
> The churn doesn't seem to be worth it, tbh.
> So could we get rid of the complexity here, and only build_bug() on
> the start address of the EFI region being outside the topmost p4d?
> That should make the PGD test redundant as well.
Yah, makes sense to me.