]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Omit tag sync on stage-2 mappings of the zero page
authorArd Biesheuvel <ardb@kernel.org>
Thu, 4 Jun 2026 15:11:56 +0000 (17:11 +0200)
committerWill Deacon <will@kernel.org>
Fri, 5 Jun 2026 10:44:10 +0000 (11:44 +0100)
commit2986a625740599fe6e7635b0586fed2a95bcd1f7
tree518b2fd1742b6ca822a7c7e976b2badd56f3d2b2
parent568def8e87fc666682ec5a74713983ac32335213
KVM: arm64: Omit tag sync on stage-2 mappings of the zero page

Commit

   f620d66af316 ("arm64: mte: Do not flag the zero page as PG_mte_tagged")

removed the PG_mte_tagged flag from the zero page, but missed a KVM code
path that may set this flag on the zero page when it is used in a
stage-2 CoW mapping of anonymous memory.

So disregard the zero page explicitly in sanitise_mte_tags().

Fixes: f620d66af316 ("arm64: mte: Do not flag the zero page as PG_mte_tagged")
Cc: stable@vger.kernel.org # 5.10.x
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kvm/mmu.c