ANDROID: KVM: arm64: Fix TLB invalidation when coalescing into a block
Wnen coalescing a table into a block, the break-before-make sequence must invalidate the whole range of addresses translated by the entry in order to avoid the possibility of a TLB conflict. Fix the coalescing post-table walker so that the whole range of the old table is invalidated, rather than just the first address, since a refcount of 1 on the child page is not sufficient to ensure the absence of any valid mappings. Cc: Sebastian Ene <sebastianene@google.com> Reported-by:Mostafa Saleh <smostafa@google.com> Fixes: 6b381020 ("ANDROID: KVM: arm64: Coalesce host stage2 entries on ownership reclaim") Bug: 331232642 Signed-off-by:
Will Deacon <willdeacon@google.com> Change-Id: I4c94f552e4385599ad88b1be50b69ffbafa64a9b
Loading