numam-dpdk/examples
Wenwu Ma 40abb903fe examples/vhost: fix use after free
In async_enqueue_pkts(), the failed pkts will
be freed before return, but, the failed pkts may be
retried later, it will cause use after free. So,
we free the failed pkts after retry.

Fixes: 1907ce4bae ("examples/vhost: fix retry logic on Rx path")
Cc: stable@dpdk.org

Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
2022-09-29 10:13:22 +02:00
..
bbdev_app fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
bond examples/bond: fix invalid use of trylock 2022-04-14 14:38:20 +02:00
bpf mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
cmdline doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
common examples/l3fwd: move packet group function in common 2022-06-30 06:54:21 +02:00
distributor eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
dma eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
ethtool dev: introduce device accessors 2022-09-23 16:14:34 +02:00
eventdev_pipeline eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
fips_validation eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
flow_classify examples/flow_classify: fix failure message 2022-03-08 14:17:27 +01:00
flow_filtering examples/flow_filtering: enhance code snippet readability 2021-11-16 16:22:26 +01:00
helloworld doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
ip_fragmentation mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
ip_pipeline kni: stop populating PCI info in examples 2022-09-23 16:14:33 +02:00
ip_reassembly replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
ipsec-secgw examples/ipsec-secgw: update ether type using tunnel info 2022-09-27 18:20:35 +02:00
ipv4_multicast ethdev: add namespace 2021-10-22 18:15:38 +02:00
kni examples/kni: add missing trailing newline in log 2022-03-08 14:27:11 +01:00
l2fwd examples/l2fwd: add promiscuous mode option 2021-10-25 22:31:53 +02:00
l2fwd-cat remove unnecessary null checks 2022-02-12 12:07:48 +01:00
l2fwd-crypto examples/l2fwd-crypto: add signal handler for exit 2022-06-01 16:26:35 +02:00
l2fwd-event examples: update event vector free routine 2022-09-27 15:41:39 +02:00
l2fwd-jobstats fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l2fwd-keepalive eal: remove FINISHED lcore state 2021-10-25 18:20:59 +02:00
l3fwd examples: update event vector free routine 2022-09-27 15:41:39 +02:00
l3fwd-graph ethdev: add namespace 2021-10-22 18:15:38 +02:00
l3fwd-power eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
link_status_interrupt examples/link_status_interrupt: fix stats refresh rate 2022-07-08 16:44:04 +02:00
multi_process bus: introduce accessors 2022-09-23 16:14:34 +02:00
ntb eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
packet_ordering eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
pipeline examples/pipeline: fix build with some compilers 2022-09-25 16:02:25 +02:00
ptpclient eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
qos_meter eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
qos_sched eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
rxtx_callbacks eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
server_node_efd eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
service_cores examples/service_cores: fix lcore count check 2021-09-16 17:31:03 +02:00
skeleton eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
timer doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
vdpa dev: introduce device accessors 2022-09-23 16:14:34 +02:00
vhost examples/vhost: fix use after free 2022-09-29 10:13:22 +02:00
vhost_blk eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
vhost_crypto examples: skip build when missing dependencies 2021-11-10 11:42:34 +01:00
vm_power_manager eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
vmdq fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
vmdq_dcb ethdev: add namespace 2021-10-22 18:15:38 +02:00
meson.build examples/l3fwd: move packet group function in common 2022-06-30 06:54:21 +02:00