Commit 028700a
committed
KVM: arm64: Fix double-free following kvm_pgtable_stage2_free_unlinked()
jira LE-1907
Rebuild_History Non-Buildable kernel-5.14.0-427.28.1.el9_4
commit-author Will Deacon <will@kernel.org>
commit c60d847
kvm_pgtable_stage2_free_unlinked() does the final put_page() on the
root page of the sub-tree before returning, so remove the additional
put_page() invocations in the callers.
Cc: Ricardo Koller <ricarkol@google.com>
Fixes: f6a27d6 ("KVM: arm64: Drop last page ref in kvm_pgtable_stage2_free_removed()")
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240212193052.27765-1-will@kernel.org
(cherry picked from commit c60d847)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 1978d5a commit 028700a
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
1398 | | - | |
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
| |||
1478 | 1477 | | |
1479 | 1478 | | |
1480 | 1479 | | |
1481 | | - | |
1482 | 1480 | | |
1483 | 1481 | | |
1484 | 1482 | | |
| |||
0 commit comments