Skip to content
Commit 498e8bf5 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Alex Williamson
Browse files

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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 1e4b044d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment