linux-uconsole/drivers/vfio
Alexey Kardashevskiy 42cdd8e961 vfio/spapr_tce: Get rid of possible infinite loop
[ Upstream commit 517ad4ae8a ]

As a part of cleanup, the SPAPR TCE IOMMU subdriver releases preregistered
memory. If there is a bug in memory release, the loop in
tce_iommu_release() becomes infinite; this actually happened to me.

This makes the loop finite and prints a warning on every failure to make
the code more bug prone.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:20:43 +01:00
..
mdev vfio/mdev: Re-order sysfs attribute creation 2018-06-08 10:24:30 -06:00
pci vfio/pci: Mask buggy SR-IOV VF INTx support 2019-11-20 18:47:32 +01:00
platform vfio: platform: Fix using devices in PM Domains 2018-06-08 10:24:37 -06:00
Kconfig
Makefile
vfio.c vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING" 2019-06-15 11:54:07 +02:00
vfio_iommu_spapr_tce.c vfio/spapr_tce: Get rid of possible infinite loop 2019-12-05 09:20:43 +01:00
vfio_iommu_type1.c vfio/type1: Limit DMA mappings per container 2019-05-02 09:58:55 +02:00
vfio_spapr_eeh.c
virqfd.c