Skip to content

Fix virtio memleaks

Amit Shah qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4virtio-balloon: Add exit handler, fix memleakshw/virtio-balloon.c hw/virtio-pci.c hw/virtio.h+20 -10 replies
2/4virtio-blk: Fix memleak on exithw/virtio-blk.c+1 -01 reply
3/4virtio-net: Fix potential use-after-freehw/virtio-net.c+1 -12 replies
4/4virtio: Plug memleak by freeing vdevhw/virtio.c+1 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchKevin Wolf
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Fix virtio memleaks

The memory allocated in virtio_common_init() wasn't being freed anywhere. Fix that.

The balloon handler wasn't unregistering its savevm section, adding an exit handler fixes that as well.

This patchset is on top of the two balloon series I've sent out yesterday and today.

Amit Shah (4):
virtio-balloon: Add exit handler, fix memleaks
virtio-blk: Fix memleak on exit
virtio-net: Fix potential use-after-free
virtio: Plug memleak by freeing vdev

 hw/virtio-balloon.c |    9 +++++++++
 hw/virtio-blk.c     |    1 +
 hw/virtio-net.c     |    2 +-
 hw/virtio-pci.c     |   11 ++++++++++-
 hw/virtio.c         |    1 +
 hw/virtio.h         |    1 +
 6 files changed, 23 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.6