mbox series

[0/1] COLO: Fix memory leak in packet_enqueue()

Message ID CAKEOLWXi1o_jCHTvAEU69S0nMGXdUgpa_AqZhn9zzP=wb8d15w@mail.gmail.com (mailing list archive)
Headers show
Series COLO: Fix memory leak in packet_enqueue() | expand

Message

Derek Su March 22, 2020, 2:49 p.m. UTC
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".


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(-)