vhost: protect vring access done by application
authorTiwei Bie <tiwei.bie@intel.com>
Mon, 19 Aug 2019 11:34:57 +0000 (19:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commit4e0de8dac8531b82d4c328791a67f49eadfed5f0
tree3b5679d8f8ea23caed30b5ec1b2a2746e2952d38
parent72d002b3ebda4686306cc5124b7a8bdf627dba0a
vhost: protect vring access done by application

Besides the enqueue/dequeue API, other APIs of the builtin net
backend should also be protected.

Fixes: a3688046995f ("vhost: protect active rings from async ring changes")
Cc: stable@dpdk.org
Reported-by: Peng He <xnhp0320@icloud.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.c