f6a27d6dc5
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.
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
include | ||
nvhe | ||
vhe | ||
Makefile | ||
aarch32.c | ||
entry.S | ||
exception.c | ||
fpsimd.S | ||
hyp-constants.c | ||
hyp-entry.S | ||
pgtable.c | ||
vgic-v2-cpuif-proxy.c | ||
vgic-v3-sr.c |