Several memory leaks were found in the virtio vhost-user GPU device (vhost-user-gpu) of QEMU. They exist in contrib/vhost-user-gpu/vhost-user-gpu.c and contrib/vhost-user-gpu/virgl.c due to improper release of memory (i.e., free) after effective lifetime. For more information, please refer to the upstream patchset below. Patch series: https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04536.html Memory leak in vg_resource_create_2d() in vhost-user-gpu.c : https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04541.html Memory leak in vg_resource_attach_backing() in vhost-user-gpu.c: https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04534.html Memory leak in vg_resource_destroy() in vhost-user-gpu.c: https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04538.html Memory leak in virgl_cmd_resource_unref() in virgl.c: https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04540.html Memory leak in virgl_resource_attach_backing() in virgl.c: https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04537.html
Created qemu tracking bugs for this issue: Affects: fedora-all [bug 1959045]
Statement: This issue does not affect the versions of `qemu-kvm` as shipped with Red Hat Enterprise Linux 6, 7 and 8, as Virgl was not enabled in these versions. Support for Virgl was enabled as technical preview in Red Hat Enterprise Linux Advanced Virtualization 8.2, and later disabled in Red Hat Enterprise Linux Advanced Virtualization 8.3.
For more information about Virgl support in RHEL Advanced Virtualization, please refer to the following bugs: * [RFE] Enable virgl as TechPreview (qemu) [bz#1559740] * Drop virgil acceleration support and remove virglrenderer dependency [bz#1831271]
Upstream commits: https://gitlab.com/qemu-project/qemu/-/commit/86dd8fac https://gitlab.com/qemu-project/qemu/-/commit/b9f79858 https://gitlab.com/qemu-project/qemu/-/commit/b7afebcf https://gitlab.com/qemu-project/qemu/-/commit/f6091d86 https://gitlab.com/qemu-project/qemu/-/commit/63736af5