numam-dpdk/lib/graph
Zhirun Yan afe67d1414 graph: fix node objects allocation
For __rte_node_enqueue_prologue(), if the number of objs is more than
the node->size * 2, the extra objs will write out of bounds memory.
It should use __rte_node_stream_alloc_size() to request enough memory.

And for rte_node_next_stream_put(), it will re-allocate a small size,
when the node free space is small and new objs is less than the current
node->size. Some objs pointers behind new size may be lost. And it will
cause memory leak. It should request enough size of memory, containing
the original objs and new objs at least.

Fixes: 40d4f51403 ("graph: implement fastpath routines")
Cc: stable@dpdk.org

Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2022-10-10 17:30:39 +02:00
..
graph_debug.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
graph_ops.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
graph_populate.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
graph_private.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
graph_stats.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
graph.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
meson.build build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
node.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
rte_graph_worker.h graph: fix node objects allocation 2022-10-10 17:30:39 +02:00
rte_graph.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00