Hi Mike,
Thanks for your report.
I agree with you, maybe you can submit the patch to fix it. (by the way, the
sync path has the same issue)
Thanks a lot.
Cheng
From: Mike Cui
Sent: Thursday, December 29, 2022 4:38 AM
To: dev@dpdk.org; Jiang, Cheng1
Subject: lib/vhost/virtio_net: possible
Hi,
I believe there is a possible stack overflow in this code:
https://github.com/DPDK/dpdk/blob/main/lib/vhost/virtio_net.c#L3631
Here, pkts_prealloc is declared on the stack with size MAX_PKT_BURST, then
filled in by rte_pktmbuf_alloc_bulk() up to 'count' elements, but 'count'
is not capped at
2 matches
Mail list logo