Skip to content
Commit d73a6d72 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Fix small race between invalidate_range_end/start

Commit e79df31c

 introduced mmu_notifer_count to protect
against parallel mmu_notifier_invalidate_range_start/end
calls. The patch left a small race condition when
invalidate_range_end() races with a new
invalidate_range_start() the empty page-table may be
reverted leading to stale TLB entries in the IOMMU and the
device. Use a spin_lock instead of just an atomic variable
to eliminate the race.

Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 27e24950
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment