[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200414030349.625-1-yuzenghui@huawei.com>
Date: Tue, 14 Apr 2020 11:03:46 +0800
From: Zenghui Yu <yuzenghui@...wei.com>
To: <kvmarm@...ts.cs.columbia.edu>
CC: <maz@...nel.org>, <james.morse@....com>,
<julien.thierry.kdev@...il.com>, <suzuki.poulose@....com>,
<wanghaibin.wang@...wei.com>, <yezengruan@...wei.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, Zenghui Yu <yuzenghui@...wei.com>
Subject: [PATCH 0/2] KVM: arm64: vgic_irq: Fix memory leaks
A memory leak on vgic_irq structure was recently reported by kmemleak
on the guest destroy (or shutdown). It turned out that there're still
pending interrupts (LPI) staying in the vcpu's ap_list during destroy
so that KVM can't free the vgic_irq structure due to an extra refcount.
Patch #1 is intended to fix this issue. Patch #2 is a memory leak fix
on the error path, noticed while debugging.
Zenghui Yu (2):
KVM: arm64: vgic-v3: Retire all pending LPIs on vcpu destroy
KVM: arm64: vgic-its: Fix memory leak on the error path of
vgic_add_lpi()
virt/kvm/arm/vgic/vgic-init.c | 6 ++++++
virt/kvm/arm/vgic/vgic-its.c | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
--
2.19.1
Powered by blists - more mailing lists