On Tue, 30 May 2023 19:32:13 +0000, Oliver Upton wrote: > The reference count on page table allocations is increased for every > 'counted' PTE (valid or donated) in the table in addition to the initial > reference from ->zalloc_page(). kvm_pgtable_stage2_free_removed() fails > to drop the last reference on the root of the table walk, meaning we > leak memory. > > Fix it by dropping the last reference after the free walker returns, > at which point all references for 'counted' PTEs have been released. Applied to fixes, thanks! [1/1] KVM: arm64: Drop last page ref in kvm_pgtable_stage2_free_removed() commit: f6a27d6dc51b288106adaf053cff9c9b9cc12c4e Cheers, M. -- Without deviation from the norm, progress is not possible.