Re: [PATCH net] vhost: reject zero size iova range

From: David Miller
Date: Thu Apr 11 2019 - 01:46:31 EST

From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Tue, 9 Apr 2019 12:10:25 +0800

> We used to accept zero size iova range which will lead a infinite loop
> in translate_desc(). Fixing this by failing the request in this case.
> Reported-by: syzbot+d21e6e297322a900c128@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 6b1e6cc7 ("vhost: new device IOTLB API")
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

Applied and queued up for -stable.