]> 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)
commit45039f491e553e98f6b6fca0fa68ef6d994ff9c3
tree8a74a22f5a49637ccb667d0350fd6566871026cc
parentb61deed67e833ce120bf3f39f1886d2ce91d8d60
Revert "net: vhost: lock the vqs one by one"

This reverts commit 6ecc039be5f70f01932c56e6219f3118f86a5930. 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 6ecc039be5f7 ("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