[RFC,kernel] vfio/spapr_tce: Get rid of possible infinite loop

Michael Ellerman patch-notifications at ellerman.id.au
Mon Dec 24 00:28:17 AEDT 2018


On Tue, 2018-10-02 at 03:22:31 UTC, Alexey Kardashevskiy wrote:
> 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 at ozlabs.ru>
> Reviewed-by: David Gibson <david at gibson.dropbear.id.au>
> Acked-by: Alex Williamson <alex.williamson at redhat.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/517ad4ae8aa93dccdb9a88c27257ec

cheers


More information about the Linuxppc-dev mailing list