Re: [PATCH v2] efi: Ignore unrealistically large option roms

2018-05-01 Thread Ard Biesheuvel
On 1 May 2018 at 15:52, David Laight wrote: > From: Ard Biesheuvel >> Sent: 28 April 2018 07:41 >> On 27 April 2018 at 23:35, Hans de Goede wrote: >> > 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

RE: [PATCH v2] efi: Ignore unrealistically large option roms

2018-05-01 Thread David Laight
From: Ard Biesheuvel > Sent: 28 April 2018 07:41 > On 27 April 2018 at 23:35, Hans de Goede wrote: > > 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_protoc

Re: [PATCH v2] efi: Ignore unrealistically large option roms

2018-04-28 Thread Hans de Goede
Hi, On 28-04-18 08:40, Ard Biesheuvel wrote: Hi Hans, On 27 April 2018 at 23:35, Hans de Goede wrote: 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_64's

Re: [PATCH v2] efi: Ignore unrealistically large option roms

2018-04-27 Thread Ard Biesheuvel
Hi Hans, On 27 April 2018 at 23:35, Hans de Goede wrote: > 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_64's romimage and romsize fields > contain inv

[PATCH v2] efi: Ignore unrealistically large option roms

2018-04-27 Thread 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_64's romimage and romsize fields contain invalid data, which looks a bit like pointers pointing back into other