diff options
author | Xie Yongji <[email protected]> | 2021-04-12 17:55:12 +0800 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2021-04-22 18:15:31 -0400 |
commit | a9d064524fc3cf463b3bb14fa63de78aafb40dab (patch) | |
tree | c541b596e010de5d772b19f9e925a55170bce841 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | bc04d93ea30a0a8eb2a2648b848cef35d1f6f798 (diff) |
vhost-vdpa: protect concurrent access to vhost device iotlb
Protect vhost device iotlb by vhost_dev->mutex. Otherwise,
it might cause corruption of the list and interval tree in
struct vhost_iotlb if userspace sends the VHOST_IOTLB_MSG_V2
message concurrently.
Fixes: 4c8cf318("vhost: introduce vDPA-based backend")
Cc: [email protected]
Signed-off-by: Xie Yongji <[email protected]>
Acked-by: Jason Wang <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions