[PATCH] KVM: arm64: Fix unaligned addr case in mmu walking
Marc Zyngier
maz at kernel.org
Thu Mar 4 09:55:30 GMT 2021
On Wed, 3 Mar 2021 10:42:25 +0800, Jia He wrote:
> If the start addr is not aligned with the granule size of that level.
> loop step size should be adjusted to boundary instead of simple
> kvm_granual_size(level) increment. Otherwise, some mmu entries might miss
> the chance to be walked through.
> E.g. Assume the unmap range [data->addr, data->end] is
> [0xff00ab2000,0xff00cb2000] in level 2 walking and NOT block mapping.
> And the 1st part of that pmd entry is [0xff00ab2000,0xff00c00000]. The
> pmd value is 0x83fbd2c1002 (not valid entry). In this case, data->addr
> should be adjusted to 0xff00c00000 instead of 0xff00cb2000.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Fix unaligned addr case in mmu walking
commit: e85583b3f1fe62c9b371a3100c1c91af94005ca9
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list