[PATCH v1 0/2] KVM: arm64: Fix a couple of latent bugs in user_mem_abort()
Marc Zyngier
maz at kernel.org
Fri Mar 6 02:48:17 PST 2026
On Wed, 04 Mar 2026 16:22:20 +0000, Fuad Tabba wrote:
> While digging into arch/arm64/kvm/mmu.c with the intention of finally
> refactoring user_mem_abort(), I ran into a couple of latent bugs that
> we should probably fix right now before attempting any major plumbing.
>
> You might experience some deja-vu looking at the first patch. A while
> back (in 5f9466b50c1b), I fixed a struct page reference leak on an
> early error return in this exact same block. It turns out that another
> early exit was introduced later on (for exclusive/atomic faults), and it
> fell into the exact same trap of leaking the page.
>
> [...]
Applied to fixes, thanks!
[1/2] KVM: arm64: Fix page leak in user_mem_abort() on atomic fault
commit: e07fc9e2da91f6d9eeafa2961be9dc09d65ed633
[2/2] KVM: arm64: Fix vma_shift staleness on nested hwpoison path
commit: 244acf1976b889b80b234982a70e9550c6f0bab7
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list