summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDave Martin2019-06-06 12:58:07 +0200
committerMarc Zyngier2019-06-12 16:54:41 +0200
commit4729ec8c1e1145234aeeebad5d96d77f4ccbb00a (patch)
tree7e22e84c44d61a3c703b22e7cd4b783b51005d40 /crypto
parentKVM: arm64: Filter out invalid core register IDs in KVM_GET_REG_LIST (diff)
downloadkernel-qcow2-linux-4729ec8c1e1145234aeeebad5d96d77f4ccbb00a.tar.gz
kernel-qcow2-linux-4729ec8c1e1145234aeeebad5d96d77f4ccbb00a.tar.xz
kernel-qcow2-linux-4729ec8c1e1145234aeeebad5d96d77f4ccbb00a.zip
KVM: arm/arm64: vgic: Fix kvm_device leak in vgic_its_destroy
kvm_device->destroy() seems to be supposed to free its kvm_device struct, but vgic_its_destroy() is not currently doing this, resulting in a memory leak, resulting in kmemleak reports such as the following: unreferenced object 0xffff800aeddfe280 (size 128): comm "qemu-system-aar", pid 13799, jiffies 4299827317 (age 1569.844s) [...] backtrace: [<00000000a08b80e2>] kmem_cache_alloc+0x178/0x208 [<00000000dcad2bd3>] kvm_vm_ioctl+0x350/0xbc0 Fix it. Cc: Andre Przywara <andre.przywara@arm.com> Fixes: 1085fdc68c60 ("KVM: arm64: vgic-its: Introduce new KVM ITS device") Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions