Re: [PATCH net] vhost: reset metadata cache when initializing new IOTLB
From: David Miller
Date: Wed Aug 08 2018 - 12:45:26 EST
From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Wed, 8 Aug 2018 11:43:04 +0800
> We need to reset metadata cache during new IOTLB initialization,
> otherwise the stale pointers to previous IOTLB may be still accessed
> which will lead a use after free.
>
> Reported-by: syzbot+c51e6736a1bf614b3272@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: f88949138058 ("vhost: introduce O(1) vq metadata cache")
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>
Applied and queued up for -stable, thanks Jason.