RE: lib/vhost/virtio_net: possible stack overflow in virtio_dev_tx_async_packed()

2023-01-28 Thread Jiang, Cheng1
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

lib/vhost/virtio_net: possible stack overflow in virtio_dev_tx_async_packed()

2023-01-02 Thread Mike Cui
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