KVM: arm64: Prevent kmemleak from accessing .hyp.data
authorQuentin Perret <qperret@google.com>
Tue, 23 Apr 2024 15:05:20 +0000 (16:05 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 May 2024 15:48:14 +0000 (16:48 +0100)
commit06cacc9d283c858661768fe0fc86e062ac23a5ad
tree948bdb3b5b30f32d1705aef7b4fc912a456f5a06
parentd48965bc47e40b06034315260b18368d6ad152b4
KVM: arm64: Prevent kmemleak from accessing .hyp.data

We've added a .data section for the hypervisor, which kmemleak is
eager to parse. This clearly doesn't go well, so add the section
to kmemleak's block list.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240423150538.2103045-13-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/pkvm.c