summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-10-21 12:06:57 +0100
committerMarc Zyngier <maz@kernel.org>2026-11-03 12:03:43 +0000
commitcbf47fe57a568f178ac55176d98a13caba1d8598 (patch)
tree730d9de4f37d5cb88b25d7a051d10581bbba9267 /tools/perf/scripts/python/bin
parent36b225a9b1c41a71d80e2cc17b3f0fcde4bd598e (diff)
KVM: arm64: Clear the whole hugetlb folio when sanitising MTE tags
sanitise_mte_tags() clears the tags of the pages about to be mapped at stage-2 before marking them tagged. For a hugetlb folio the flag covers every page in the folio, but the loop only covers the mapping being installed. Stage-2 maps a folio in pieces for the contiguous hugetlb sizes, and for any size under dirty logging. The first fault then marks the whole folio after clearing only its own piece, and the rest keeps its previous owner's tags for the guest to read. Clear the whole folio, as mte_sync_tags() does. Fixes: 25c17c4b55def ("hugetlb: arm64: add mte support") Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://patch.msgid.link/20261021110700.493315-2-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions