Go to file
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
.ci ci: add ppc64le cross compilation in GHA 2021-11-10 11:48:01 +01:00
.github/workflows ci: add ppc64le cross compilation in GHA 2021-11-10 11:48:01 +01:00
app test/distributor: remove unused counter 2021-11-16 13:02:27 +01:00
buildtools buildtools: fix build with Meson 0.60 2021-11-03 14:16:29 +01:00
config eal/ppc: support ASan 2021-11-16 11:24:22 +01:00
devtools devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
doc doc: fix indentation in flow-perf guide 2021-11-16 12:34:06 +01:00
drivers net/vmxnet3: fix build with clang 13 2021-11-16 13:02:27 +01:00
examples examples/performance-thread: remove unused hits count 2021-11-16 13:02:27 +01:00
kernel kni: update kernel API to set random MAC address 2021-11-08 11:51:39 +01:00
lib eventdev/eth_tx: fix queue delete logic 2021-11-15 08:22:38 +01:00
license lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
usertools usertools/devbind: update octeontx2 DMA device 2021-11-10 14:15:39 +01:00
.editorconfig doc: add Meson coding style to contributors guide 2021-04-21 14:04:09 +02:00
.gitattributes
.gitignore gpudev: introduce GPU device class library 2021-11-08 17:20:52 +01:00
.travis.yml version: 21.11-rc0 2021-08-17 08:37:52 +02:00
ABI_VERSION version: 21.11-rc0 2021-08-17 08:37:52 +02:00
MAINTAINERS net/szedata2: remove driver 2021-11-15 16:50:35 +01:00
Makefile build: create dummy Makefile 2020-09-07 23:51:57 +02:00
meson_options.txt config: add option for atomic mbuf reference counting 2021-10-25 17:53:30 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 21.11-rc2 2021-11-09 00:45:12 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org