summaryrefslogtreecommitdiff
path: root/net/vmw_vsock
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-12-13 10:53:37 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-09 17:38:34 +0100
commit2b23a36517493e7f1db21c1dda961799cde1c41a (patch)
treef46b8c4b4172d02853ae0c69597d07140e5ef722 /net/vmw_vsock
parent2ce6d5aeafba9066eec0f93e85f463549f362dae (diff)
vhost: make sure used idx is seen before log in vhost_add_used_n()
[ Upstream commit 841df922417eb82c835e93d4b93eb6a68c99d599 ] We miss a write barrier that guarantees used idx is updated and seen before log. This will let userspace sync and copy used ring before used idx is update. Fix this by adding a barrier before log_write(). Fixes: 8dd014adfea6f ("vhost-net: mergeable buffers support") 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/vmw_vsock')
0 files changed, 0 insertions, 0 deletions