numam-dpdk/examples
Wenwu Ma ad5050e42e examples/vhost: fix use after free on drain
When a vdev is removed in destroy_device function,
the corresponding vhost TX buffer will also be freed,
but the vhost TX buffer may still be used in the
drain_vhost function, which will cause an error of
heap-use-after-free. Therefore, before accessing
vhost TX buffer, we need to check whether the vdev
has been removed, if so, let's skip this vdev.

Fixes: a68ba8e0a6 ("examples/vhost: refactor vhost data path")
Cc: stable@dpdk.org

Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
2021-10-21 14:24:21 +02:00
..
bbdev_app ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
bond ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
bpf examples: remove old build system references 2020-09-07 23:51:57 +02:00
cmdline doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
distributor ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
ethtool net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
eventdev_pipeline examples/eventdev_pipeline: use port config hints 2021-10-21 10:16:00 +02:00
fips_validation examples/fips_validation: fix resetting pointer 2021-10-08 21:31:07 +02:00
flow_classify ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
flow_filtering net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
helloworld doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
ioat ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
ip_fragmentation ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
ip_pipeline ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
ip_reassembly examples/ip_reassembly: remove unused option 2021-10-18 19:20:21 +02:00
ipsec-secgw ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
ipv4_multicast ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
kni ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
l2fwd examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
l2fwd-cat ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
l2fwd-crypto ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
l2fwd-event examples/l2fwd-event: support event vector 2021-10-21 10:16:00 +02:00
l2fwd-jobstats examples/l2fwd-jobstats: use compiler atomics for stats sync 2021-10-19 17:15:57 +02:00
l2fwd-keepalive examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
l3fwd examples/l3fwd: support event vector 2021-10-21 10:16:00 +02:00
l3fwd-acl ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
l3fwd-graph ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
l3fwd-power ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
link_status_interrupt examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
multi_process examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
ntb examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
packet_ordering net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
performance-thread ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
pipeline ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
ptpclient ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
qos_meter ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
qos_sched ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
rxtx_callbacks ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
server_node_efd examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
service_cores examples/service_cores: fix lcore count check 2021-09-16 17:31:03 +02:00
skeleton ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
timer doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
vdpa examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vhost examples/vhost: fix use after free on drain 2021-10-21 14:24:21 +02:00
vhost_blk examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
vhost_crypto examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vm_power_manager ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
vmdq examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
vmdq_dcb examples: remove unneeded atomic header include 2021-10-19 17:16:57 +02:00
meson.build examples: reduce indentation in build files 2021-04-21 14:04:09 +02:00