diff options
| author | Marc Zyngier <[email protected]> | 2021-06-24 13:21:05 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2021-06-24 13:54:45 +0000 |
| commit | 98db7259fa7b963d80da49fd636744e28a78981e (patch) | |
| tree | 716432fd9008d5731c96be932db5af0bdb4b524e /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | KVM: arm64: Document MTE capability and ioctl (diff) | |
| download | kernel-98db7259fa7b963d80da49fd636744e28a78981e.tar.gz kernel-98db7259fa7b963d80da49fd636744e28a78981e.zip | |
KVM: arm64: Set the MTE tag bit before releasing the page
Setting a page flag without holding a reference to the page
is living dangerously. In the tag-writing path, we drop the
reference to the page by calling kvm_release_pfn_dirty(),
and only then set the PG_mte_tagged bit.
It would be safer to do it the other way round.
Fixes: f0376edb1ddca ("KVM: arm64: Add ioctl to fetch/store tags in a guest")
Cc: Catalin Marinas <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
