linux/drivers/vfio/pci
Alex Williamson b95d9305e8 vfio/pci: Fix unsigned comparison overflow
Signed versus unsigned comparisons are implicitly cast to unsigned,
which result in a couple possible overflows.  For instance (start +
count) might overflow and wrap, getting through our validation test.
Also when unwinding setup, -1 being compared as unsigned doesn't
produce the intended stop condition.  Fix both of these and also fix
vfio_msi_set_vector_signal() to validate parameters before using the
vector index, though none of the callers should pass bad indexes
anymore.

Reported-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-02-22 16:03:54 -07:00
..
Kconfig vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
Makefile vfio: initialize the virqfd workqueue in VFIO generic code 2015-03-16 14:08:54 -06:00
vfio_pci_config.c vfio/pci: make an array larger 2015-11-09 08:59:11 -07:00
vfio_pci_intrs.c vfio/pci: Fix unsigned comparison overflow 2016-02-22 16:03:54 -07:00
vfio_pci_private.h vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
vfio_pci_rdwr.c vfio-pci: Add support for VGA region access 2013-02-18 10:11:13 -07:00
vfio_pci.c vfio: Include No-IOMMU mode 2015-12-21 15:28:11 -07:00