numam-dpdk/lib
Naga Harish K S V 741b499e64 eventdev/eth_tx: fix queue delete logic
This patch fixes heap-use-after-free reported by ASan.

The application can use the queue_id as `-1` to delete all
the queues of the eth_device that are added to tx_adapter
instance.
In above case, the queue_del API is trying to use number of
queues from adapter level instead of eth_device queues.
When there are queues added from multiple eth devices,
it will result in heap-use-after-free as reported by ASAN.

This patch fixes the queue_del API to use correct number of
queues.

Bugzilla ID: 869
Fixes: a3bbf2e097 ("eventdev: add eth Tx adapter implementation")
Cc: stable@dpdk.org

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>
Tested-by: David Marchand <david.marchand@redhat.com>
2021-11-15 08:22:38 +01:00
..
acl build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
bbdev bbdev: promote API as stable 2021-11-04 19:43:14 +01:00
bitratestats bitrate: promote free function to stable 2021-10-01 15:31:47 +02:00
bpf build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
cfgfile version: 21.11-rc0 2021-08-17 08:37:52 +02:00
cmdline cmdline: free on exit 2021-10-22 23:32:00 +02:00
compressdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
cryptodev crypto/mlx5: support 1MB data-unit 2021-11-04 19:46:27 +01:00
distributor distributor: use wait until scheme 2021-11-03 15:50:14 +01:00
dmadev dmadev: remove symbol versioning for inline helpers 2021-10-22 22:40:59 +02:00
eal eal/ppc: support ASan 2021-11-16 11:24:22 +01:00
efd build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
ethdev ethdev: fix typos 2021-11-15 17:41:21 +01:00
eventdev eventdev/eth_tx: fix queue delete logic 2021-11-15 08:22:38 +01:00
fib fib: add RIB extension size parameter 2021-11-04 12:38:03 +01:00
flow_classify build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
gpudev gpudev: add communication list 2021-11-08 17:20:53 +01:00
graph build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
gro net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
gso mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
hash hash: fix use after free in Toeplitz hash 2021-11-04 11:43:20 +01:00
ip_frag ip_frag: revert fix fragmenting IPv4 fragment 2021-11-08 23:32:38 +01:00
ipsec ipsec: support TSO 2021-11-04 19:46:27 +01:00
jobstats build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
kni kni: check error code of allmulticast mode switch 2021-11-08 11:56:13 +01:00
kvargs kvargs: fix comments style 2021-09-30 17:38:13 +02:00
latencystats version: 21.11-rc0 2021-08-17 08:37:52 +02:00
lpm lpm6: fix buffer overflow 2021-10-25 19:08:16 +02:00
mbuf mbuf: avoid cast-align warning in data offset macro 2021-10-25 17:27:48 +02:00
member build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
mempool mempool: fix non-IO flag inference 2021-10-25 16:52:56 +02:00
meter version: 21.11-rc0 2021-08-17 08:37:52 +02:00
metrics build: factorize jansson availability check 2021-11-10 16:23:05 +01:00
net net: fix build with sparse on L2TPv2 bitfields 2021-10-28 20:28:01 +02:00
node build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
pcapng pcapng: use new ethdev namespace 2021-10-31 23:25:02 +01:00
pci eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
pdump pdump: fix freeing statistics memzone 2021-11-03 12:53:03 +01:00
pipeline pipeline: remove unreachable branch 2021-11-04 18:11:08 +01:00
port build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
power power: remove unused poll counter 2021-11-12 15:43:49 +01:00
rawdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rcu lib: remove C++ include guard from private headers 2021-09-22 22:00:17 +02:00
regexdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
reorder build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rib rib: fix IPv6 depth mask 2021-10-25 19:13:12 +02:00
ring ring: fix name size in ring structure 2021-10-21 09:32:04 +02:00
sched sched: fix debug build 2021-11-07 18:52:51 +01:00
security security: add telemetry endpoint for capabilities 2021-11-04 19:46:27 +01:00
stack stack: remove unneeded atomic header include 2021-10-19 17:15:10 +02:00
table build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
telemetry telemetry: fix socket path conflicts for in-memory mode 2021-10-14 20:31:10 +02:00
timer version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost vhost: rename driver callbacks struct 2021-11-03 11:59:27 +01:00
meson.build gpudev: introduce GPU device class library 2021-11-08 17:20:52 +01:00