diff options
| author | Marc Zyngier <[email protected]> | 2023-03-16 17:45:46 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2023-03-16 23:42:56 +0000 |
| commit | 8c2e8ac8ad4be68409e806ce1cc78fc7a04539f3 (patch) | |
| tree | 13730fce21c4cfe0ff7cdf507ddebecb2996ce84 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | KVM: arm64: Disable interrupts while walking userspace PTs (diff) | |
| download | kernel-8c2e8ac8ad4be68409e806ce1cc78fc7a04539f3.tar.gz kernel-8c2e8ac8ad4be68409e806ce1cc78fc7a04539f3.zip | |
KVM: arm64: Check for kvm_vma_mte_allowed in the critical section
On page fault, we find about the VMA that backs the page fault
early on, and quickly release the mmap_read_lock. However, using
the VMA pointer after the critical section is pretty dangerous,
as a teardown may happen in the meantime and the VMA be long gone.
Move the sampling of the MTE permission early, and NULL-ify the
VMA pointer after that, just to be on the safe side.
Signed-off-by: Marc Zyngier <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
