commit | 498e8bf51c633cc4496343e6113f340f8e9301ae | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Fri Jul 06 23:50:06 2018 +0300 |
committer | Alex Williamson <alex.williamson@redhat.com> | Wed Jul 11 13:22:41 2018 -0600 |
tree | 43bdf27e23afef2d4c07e184372a979c3910ef7d | |
parent | 1e4b044d22517cae7047c99038abb444423243ca [diff] |
sample: vfio-mdev: avoid deadlock in mdev_access() mdev_access() calls mbochs_get_page() with mdev_state->ops_lock held, while mbochs_get_page() locks the mutex by itself. It leads to unavoidable deadlock. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>