Re: [PATCH v1] graph: fix out of bounds access when re-allocate node objs

2022-08-01 Thread Jerin Jacob
On Wed, Jul 27, 2022 at 8:10 AM Zhirun Yan wrote: > > 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_strea

[PATCH v1] graph: fix out of bounds access when re-allocate node objs

2022-07-26 Thread Zhirun Yan
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