Re: [PATCH] x86/efistub: Omit physical KASLR when memory reservations exist

From: Ard Biesheuvel
Date: Thu May 16 2024 - 13:31:09 EST


On Thu, 16 May 2024 at 19:29, Chaney, Ben <bchaney@xxxxxxxxxx> wrote:
>
> > +static efi_status_t parse_options(const char *cmdline)
> > +{
> > + static const char opts[][14] = {
> > + "mem=", "memmap=", "efi_fake_mem=", "hugepages="
> > + };
> > +
>
> I think we probably want to include both crashkernel and pstore as arguments that can disable this randomization.
>

The existing code in arch/x86/boot/compressed/kaslr.c currently does
not take these into account, as far as I can tell.