Re: [PATCH] hw/net/virtio-net: fix memory leak in timer_del()

2025-03-27 Thread Prasad Pandit
On Thu, 27 Mar 2025 at 16:15, Zheng Huang wrote: > +++ b/hw/net/virtio-net.c > @@ -422,7 +422,7 @@ static void virtio_net_set_status(struct VirtIODevice > *vdev, uint8_t status) > } > } else { > if (q->tx_timer) { > -timer_del(q->tx_timer); > +

[PATCH] hw/net/virtio-net: fix memory leak in timer_del()

2025-03-27 Thread Zheng Huang
Hi, This patch addresses a memory leak bug in the usages of `timer_del()`. The issue arisesfrom the incorrect use of the ambiguous timer API `timer_del()`, which does not free the timer object. The leak sanitizer report this issue during fuzzing. The correct API `timer_free()` freed the timer obje

[PATCH] hw/net/virtio-net: fix memory leak in timer_del()

2025-03-27 Thread Zheng Huang
Hi, This patch addresses a memory leak bug in the usages of `timer_del()`. The issue arisesfrom the incorrect use of the ambiguous timer API `timer_del()`, which does not free the timer object. The leak sanitizer report this issue during fuzzing. The correct API `timer_free()` freed the timer obje