]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: vhost: lock the vqs one by one"
authorJason Wang <jasowang@redhat.com>
Thu, 13 Dec 2018 02:53:39 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 05:56:20 +0000 (21:56 -0800)
commit7b813f30a6dd485d872d606307e65dbb99d41737
tree8a74a22f5a49637ccb667d0350fd6566871026cc
parent79c679690a219b8e680556dfb65f43281341810e
Revert "net: vhost: lock the vqs one by one"

This reverts commit 827c8ca547b26e5b31964d29c5ae79729750c8f8. We don't
protect device IOTLB with vq mutex, which will lead e.g use after free
for device IOTLB entries. And since we've switched to use
mutex_trylock() in previous patch, it's safe to revert it without
having deadlock.

Fixes: commit 827c8ca547b2 ("net: vhost: lock the vqs one by one")
Cc: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c