Re: [Qemu-devel] [PATCH] vfio-pci: Fix BAR size overflow

2015-01-06 Thread Alex Williamson
- Original Message - > On 01/06/15 19:03, Alex Williamson wrote: > > We use an unsigned int when working with the PCI BAR size, which can > > obviously overflow if the BAR is 4GB or larger. This needs to change > > to an unsigned long. A similar issue is possible, though even more > > unl

Re: [Qemu-devel] [PATCH] vfio-pci: Fix BAR size overflow

2015-01-06 Thread Don Slutz
On 01/06/15 19:03, Alex Williamson wrote: We use an unsigned int when working with the PCI BAR size, which can obviously overflow if the BAR is 4GB or larger. This needs to change to an unsigned long. A similar issue is possible, though even more unlikely, when mapping the region above an MSI-X

[Qemu-devel] [PATCH] vfio-pci: Fix BAR size overflow

2015-01-06 Thread Alex Williamson
We use an unsigned int when working with the PCI BAR size, which can obviously overflow if the BAR is 4GB or larger. This needs to change to an unsigned long. A similar issue is possible, though even more unlikely, when mapping the region above an MSI-X table. The start of the table must be belo