Re: [PATCH] iommu/iova: fix underflow bug in __alloc_and_insert_iova_range

2017-04-07 Thread Joerg Roedel
On Fri, Apr 07, 2017 at 01:36:20AM -0400, Nate Watterson wrote: > Signed-off-by: Nate Watterson > --- > drivers/iommu/iova.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.

Re: [PATCH] iommu/iova: fix underflow bug in __alloc_and_insert_iova_range

2017-04-07 Thread Joerg Roedel
On Fri, Apr 07, 2017 at 01:36:20AM -0400, Nate Watterson wrote: > Signed-off-by: Nate Watterson > --- > drivers/iommu/iova.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.

[PATCH] iommu/iova: fix underflow bug in __alloc_and_insert_iova_range

2017-04-06 Thread Nate Watterson
Normally, calling alloc_iova() using an iova_domain with insufficient pfns remaining between start_pfn and dma_limit will fail and return a NULL pointer. Unexpectedly, if such a "full" iova_domain contains an iova with pfn_lo == 0, the alloc_iova() call will instead succeed and return an iova

[PATCH] iommu/iova: fix underflow bug in __alloc_and_insert_iova_range

2017-04-06 Thread Nate Watterson
Normally, calling alloc_iova() using an iova_domain with insufficient pfns remaining between start_pfn and dma_limit will fail and return a NULL pointer. Unexpectedly, if such a "full" iova_domain contains an iova with pfn_lo == 0, the alloc_iova() call will instead succeed and return an iova