Bug 3360 - memory leak of migration pages in VFIO PCI
Summary: memory leak of migration pages in VFIO PCI
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: AubreyLi
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 11:19 UTC by AubreyLi
Modified: 2023-01-17 15:15 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AubreyLi intel_group 2022-12-06 11:19:14 UTC
vdcm allocate migration pages at the following flow:

vdcm_vidxd_create()
-> vfio_pci_migration_init()
--> vfio_pci_device->mig_pages = kzalloc()

But migration pages are not free during vdcm removed
idxd_vdcm_remove()

This is certainly a memory leak need to be fixed.
Comment 1 maqiao alibaba_cloud_group 2023-01-17 15:15:08 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/969