]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Fix memory check in host_stage2_set_owner_locked()
authorMostafa Saleh <smostafa@google.com>
Thu, 1 May 2025 16:24:50 +0000 (16:24 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 7 May 2025 07:17:05 +0000 (00:17 -0700)
commit3949e28786cd0afcd96a46ce6629245203f629e5
tree2c4d9bca887a323795cc550370cf853065199985
parentef296ee98bb19ee2a6dbf76155184c99da0d7c71
KVM: arm64: Fix memory check in host_stage2_set_owner_locked()

I found this simple bug while preparing some patches for pKVM.
AFAICT, it should be harmless (besides crashing the kernel if it
was misbehaving)

Fixes: e94a7dea2972 ("KVM: arm64: Move host page ownership tracking to the hyp vmemmap")
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Link: https://lore.kernel.org/r/20250501162450.2784043-1-smostafa@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/mem_protect.c