[PATCH v1] KVM: arm64: Fix page leak in user_mem_abort()

Marc Zyngier maz at kernel.org
Wed Sep 17 09:43:14 PDT 2025


On Wed, 17 Sep 2025 14:07:37 +0100, Fuad Tabba wrote:
> The user_mem_abort() function acquires a page reference via
> __kvm_faultin_pfn() early in its execution. However, the subsequent
> checks for mismatched attributes between stage 1 and stage 2 mappings
> would return an error code directly, bypassing the corresponding page
> release.
> 
> Fix this by storing the error and releasing the unused page before
> returning the error.
> 
> [...]

Applied to next, thanks!

[1/1] KVM: arm64: Fix page leak in user_mem_abort()
      commit: 5f9466b50c1b4253d91abf81780b90a722133162

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list