Re: [PATCH 15/17] efi/x86: Ignore unrealistically large option roms

2018-05-13 Thread Ingo Molnar
* Ard Biesheuvel wrote: > + /* > + * Some firmwares contain EFI function pointers at the place where the > + * romimage and romsize fields are supposed to be. Typically the EFI > + * code is mapped at high addresses, translating to an unrealistically > + * large romsize.

[PATCH 15/17] efi/x86: Ignore unrealistically large option roms

2018-05-03 Thread Ard Biesheuvel
From: Hans de Goede setup_efi_pci() tries to save a copy of each PCI option ROM as this may be necessary for the device driver for the PCI device to have access too. On some systems the efi_pci_io_protocol's romimage and romsize fields contain invalid data, which looks a bit like pointers pointi