Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost: fix missing vring call check on virtqueue access
[ upstream commit af7f683615244675fc4f472a2aa42880896476ad ] Acquiring the access lock is not enough to ensure virtqueue's metadata such as vring pointers are valid. The access status must also be checked. Fixes: 6c299bb ("vhost: introduce vring call API") Fixes: c573699 ("vhost: fix missing virtqueue lock protection") Fixes: 830f7e7 ("vhost: add non-blocking API for posting interrupt") Reported-by: Li Feng <fengli@smartx.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: David Marchand <david.marchand@redhat.com>
- Loading branch information