summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorXuheng Li <xuheng@cs.columbia.edu>2026-10-28 23:02:10 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 11:07:56 +0000
commit0e24f9db2ebedc271add0c5dbf2821b8f8a0ab06 (patch)
tree066c4b2b4c0560d050051a7e99b97cf3dba6927d /tools/perf/scripts/python/bin
parent361564a8d4305100ee4140ff7b345d1bf2c1a1b2 (diff)
KVM: arm64: Add an ISB after mapping a hyp fixmap slot
fixmap_map_slot() installs a valid PTE for the CPU's fixmap slot (or the fixblock slot) and issues a DSB ISHST before returning the slot's VA, which the caller then accesses. It does not issue an ISB. The DSB guarantees that the PTE write has completed, but without a context synchronization event the architecture does not guarantee that a later access on the same CPU uses the new entry: its translation may have been performed speculatively while the slot was still invalid, in which case the access takes a translation fault. At EL2 that fault ends in hyp_panic(). The clear side, fixmap_clear_slot(), already ends with an ISB. A litmus test of the same shape (map the slot, DSB ISHST, load through it) faulted on a Cortex-A72 in 2 out of 100M runs. Arm's herd7 model with -variant vmsa also allows the fault, and forbids it once the ISB is added. Add the missing ISB. This covers both hyp_fixmap_map() and hyp_fixblock_map(), which share fixmap_map_slot(). Fixes: aa6948f82f0b ("KVM: arm64: Add per-cpu fixmap infrastructure at EL2") Cc: stable@vger.kernel.org Signed-off-by: Xuheng Li <xuheng@cs.columbia.edu> Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> Tested-by: Fuad Tabba <fuad.tabba@linux.dev> Reviewed-by: Oliver Upton <oupton@kernel.org> Link: https://patch.msgid.link/20261028-fixmap-isb-v1-1-6c9f0f9cb810@cs.columbia.edu Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions