Skip to content

vfio: Fix coverity found issues

Alex Williamson kvm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vfio/pci: Fix sizing of DPA and THP express capabilitiesdrivers/vfio/pci/vfio_pci_config.c+3 -40 replies
2/3vfio/pci: Fix unchecked return valuedrivers/vfio/pci/vfio_pci.c+2 -10 replies
3/3vfio/iommu_type1: Avoid overflowdrivers/vfio/vfio_iommu_type1.c+18 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] vfio: Fix coverity found issues

Overall nothing very serious here. We botch the size of a PCIe capability due to a cut-n-paste error, but nobody has noticed due to the rarity of the capability. A 32bit host could possibly see some overflows attempting to do a DMA map, but all of the parameters are also validated elsewhere, so while this may cause unexepected behavior for the user, there doesn't appear to be any risk to the host. Thanks,

Alex

---

Alex Williamson (3):
vfio/pci: Fix sizing of DPA and THP express capabilities vfio/pci: Fix unchecked return value vfio/iommu_type1: Avoid overflow

 drivers/vfio/pci/vfio_pci.c        |    3 ++
 drivers/vfio/pci/vfio_pci_config.c |    7 ++----
 drivers/vfio/vfio_iommu_type1.c    |   45 ++++++++++++++----------------------
 3 files changed, 23 insertions(+), 32 deletions(-)