git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc601a
)
event/octeontx: fix memory corruption
author
Harman Kalra
<hkalra@marvell.com>
Fri, 15 May 2020 11:21:24 +0000
(16:51 +0530)
committer
Jerin Jacob
<jerinj@marvell.com>
Mon, 29 Jun 2020 16:02:55 +0000
(18:02 +0200)
Since PMD enqueues a single event at a time, fixing the issue by
passing 1 rather than nb_events to avoid any out of bound access as
reported by coverity.
Coverity issue: 358447
Fixes:
56a96aa42464
("event/octeontx: add framework for Rx/Tx offloads")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/event/octeontx/ssovf_worker.c
patch
|
blob
|
history
diff --git
a/drivers/event/octeontx/ssovf_worker.c
b/drivers/event/octeontx/ssovf_worker.c
index
d2d5eea
..
18b7926
100644
(file)
--- a/
drivers/event/octeontx/ssovf_worker.c
+++ b/
drivers/event/octeontx/ssovf_worker.c
@@
-282,6
+282,7
@@
__sso_event_tx_adapter_enqueue(void *port, struct rte_event ev[],
struct ssows *ws = port;
struct octeontx_txq *txq;
+ RTE_SET_USED(nb_events);
switch (ev->sched_type) {
case SSO_SYNC_ORDERED:
ssows_swtag_norm(ws, ev->event, SSO_SYNC_ATOMIC);
@@
-305,7
+306,7
@@
__sso_event_tx_adapter_enqueue(void *port, struct rte_event ev[],
ethdev = &rte_eth_devices[port_id];
txq = ethdev->data->tx_queues[queue_id];
- return __octeontx_xmit_pkts(txq, &m,
nb_events
, cmd, flag);
+ return __octeontx_xmit_pkts(txq, &m,
1
, cmd, flag);
}
#define T(name, f3, f2, f1, f0, sz, flags) \