numam-dpdk/lib/eventdev
Naga Harish K S V 3d6e9dd493 eventdev/eth_tx: fix adapter creation
During adapter create, memory is allocated for storing event port
configuration which is freed during adapter free. The following
error is seen during free "EAL: Error: Invalid memory"

The service data pointer storage for txa_service_data_array is
allocated during adapter create with incorrect size which is less
than the required size.
Initialization of this memory causes buffer overflow and result in
metadata overwrite of event port config memory allocated above
and results in the above error message during free.

Allocating the correct size of memory for txa_service_data_array
prevents overwriting other memory areas like event port config
memory.

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>
2022-06-20 20:39:11 +02:00
..
event_timer_adapter_pmd.h eventdev: hide timer adapter PMD file 2021-10-21 10:14:50 +02:00
eventdev_pmd_pci.h eventdev: add missing C++ guards 2022-02-22 14:47:49 +01:00
eventdev_pmd_vdev.h eventdev: add missing C++ guards 2022-02-22 14:47:49 +01:00
eventdev_pmd.h eventdev: add weight and affinity to queue attributes 2022-05-17 16:43:44 +02:00
eventdev_private.c eventdev: add port maintenance API 2021-11-04 13:27:54 +01:00
eventdev_trace_points.c eventdev: add port maintenance API 2021-11-04 13:27:54 +01:00
eventdev_trace.h eventdev: make trace API internal 2021-10-21 10:16:00 +02:00
meson.build build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rte_event_crypto_adapter.c eventdev: use new API to get event crypto metadata 2022-06-01 16:26:34 +02:00
rte_event_crypto_adapter.h eventdev: use new API for inline functions 2021-10-21 10:14:50 +02:00
rte_event_eth_rx_adapter.c eventdev/eth_rx: fix telemetry Rx stats reset 2022-05-17 16:42:23 +02:00
rte_event_eth_rx_adapter.h eventdev/eth_rx: add event port get API 2022-01-23 16:29:43 +01:00
rte_event_eth_tx_adapter.c eventdev/eth_tx: fix adapter creation 2022-06-20 20:39:11 +02:00
rte_event_eth_tx_adapter.h eventdev: use new API for inline functions 2021-10-21 10:14:50 +02:00
rte_event_ring.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rte_event_ring.h eventdev: add missing C++ guards 2022-02-22 14:47:49 +01:00
rte_event_timer_adapter.c eventdev/timer: add telemetry 2022-05-17 16:42:52 +02:00
rte_event_timer_adapter.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
rte_eventdev_core.h eventdev: add port maintenance API 2021-11-04 13:27:54 +01:00
rte_eventdev_trace_fp.h eventdev: add port maintenance API 2021-11-04 13:27:54 +01:00
rte_eventdev.c eventdev: add weight and affinity to queue attributes 2022-05-17 16:43:44 +02:00
rte_eventdev.h eventdev: add weight and affinity to queue attributes 2022-05-17 16:43:44 +02:00
version.map eventdev: support setting queue attributes at runtime 2022-05-17 16:43:37 +02:00