All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] COLO: Fix memory leak in packet_enqueue()
@ 2020-03-22 17:47 Derek Su
  2020-03-22 17:47 ` [PATCH v2 1/1] net/colo-compare.c: " Derek Su
  0 siblings, 1 reply; 8+ messages in thread
From: Derek Su @ 2020-03-22 17:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: dereksu, chen.zhang, jasowang, lizhijian

The patch is to fix the memory leak in packet_enqueue().
The allocated "pkt" needs to be freed if the colo compare
primary or secondary queue is too big to insert.

Reproduce steps:
(1) Setup PVM and SVM both with NIC e1000 by the steps descripted
    in the wiki qemu/COLO
(2) Run "iperf3 -s" in PVM
(3) Run "iperfs -c <PVM-IP> -t 7200"

The memory usage of qemu-system-x86_64 increases as the PVM's QMP 
shows "qemu-system-x86_64: colo compare secondary queue size too big,
drop packet".

Please review, thanks.

V2:
 - Fix incorrect patch format

Derek Su (1):
  net/colo-compare.c: Fix memory leak in packet_enqueue()

 net/colo-compare.c | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-25  5:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-22 17:47 [PATCH v2 0/1] COLO: Fix memory leak in packet_enqueue() Derek Su
2020-03-22 17:47 ` [PATCH v2 1/1] net/colo-compare.c: " Derek Su
2020-03-23 19:24   ` Zhang, Chen
2020-03-24  2:46     ` Jing-Wei Su
2020-03-25  1:37       ` Zhang, Chen
2020-03-25  2:05         ` Jing-Wei Su
2020-03-25  4:16           ` Derek Su
2020-03-25  5:42             ` Zhang, Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.