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

From: Michael Ellerman <[email-masked]>
Date: Mon, 24 Dec 2018 00:28:17 +1100 (AEDT)

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 <[email-masked]>
> Reviewed-by: David Gibson <[email-masked]>
> Acked-by: Alex Williamson <[email-masked]>

Applied to powerpc next, thanks.

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

cheers