Re: [PATCH] pci: Add checks to prevent config space overflow

2022-08-27 Thread Tom Rini
On Sun, Jul 03, 2022 at 12:48:06PM +0200, Pali Rohár wrote: > PCIe config space has address range 0-4095. So do not allow reading from > addresses outside of this range. Lot of U-Boot drivers do not expect that > passed value is not in this range. PCI DM read function is extended to > fill read va

Re: [PATCH] pci: Add checks to prevent config space overflow

2022-08-17 Thread Pali Rohár
On Monday 04 July 2022 08:00:23 Stefan Roese wrote: > On 03.07.22 12:48, Pali Rohár wrote: > > PCIe config space has address range 0-4095. So do not allow reading from > > addresses outside of this range. Lot of U-Boot drivers do not expect that > > passed value is not in this range. PCI DM read fu

Re: [PATCH] pci: Add checks to prevent config space overflow

2022-07-03 Thread Stefan Roese
On 03.07.22 12:48, Pali Rohár wrote: PCIe config space has address range 0-4095. So do not allow reading from addresses outside of this range. Lot of U-Boot drivers do not expect that passed value is not in this range. PCI DM read function is exetended to s/exetended/extended fill read value

[PATCH] pci: Add checks to prevent config space overflow

2022-07-03 Thread Pali Rohár
PCIe config space has address range 0-4095. So do not allow reading from addresses outside of this range. Lot of U-Boot drivers do not expect that passed value is not in this range. PCI DM read function is exetended to fill read value to all ones or zeros when it fails as U-Boot callers ignores ret