numam-dpdk/lib/librte_vhost
Ilya Maximets 48cae0bfa6 vhost: fix double read of descriptor flags
Flags could be updated in a separate process leading to the
inconsistent check.

Additionally, read marked as 'volatile' to highlight the shared
nature of the variable and avoid such issues in the future.

Fixes: d3211c98c4 ("vhost: add helpers for packed virtqueues")
Cc: stable@dpdk.org

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-12-13 18:17:42 +00:00
..
fd_man.c vhost: fix typo in comment 2018-05-14 22:31:03 +01:00
fd_man.h vhost: fix dead lock on closing in server mode 2018-05-14 22:29:59 +01:00
iotlb.c vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
iotlb.h vhost: flush IOTLB cache on new mem table handling 2018-08-05 01:47:47 +02:00
Makefile vhost/crypto: fix shared lib build without cryptodev 2018-10-26 22:14:05 +02:00
meson.build vhost: add config flag for postcopy 2018-10-18 10:24:39 +02:00
rte_vdpa.h vhost: add doxygen comment to vDPA header 2018-10-18 10:24:39 +02:00
rte_vhost_crypto.h vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vhost_version.map vhost: introduce API to get vDPA device number 2018-10-11 18:53:49 +02:00
rte_vhost.h vhost: restrict postcopy live-migration enablement 2018-10-18 10:24:39 +02:00
socket.c vhost: restrict postcopy live-migration enablement 2018-10-18 10:24:39 +02:00
vdpa.c vhost: fix possible out of bound access 2018-11-06 01:14:23 +01:00
vhost_crypto.c vhost/crypto: fix packet copy in chaining mode 2018-11-14 00:35:53 +01:00
vhost_user.c vhost: fix crash after mmap failure 2018-12-13 17:56:21 +00:00
vhost_user.h vhost: enable postcopy protocol feature 2018-10-18 10:24:39 +02:00
vhost.c vhost: initialize postcopy ufd properly 2018-10-26 22:14:06 +02:00
vhost.h vhost: fix double read of descriptor flags 2018-12-13 18:17:42 +00:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: fix IOVA access for packed ring 2018-11-14 00:35:53 +01:00