mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
gnttab: correct maptrack table access
In order to observe a consistent (limit,pointer-table) pair, the reader
needs to either hold the grant table lock or both sides need to order
their accesses suitably (the writer side barrier is already there). Add
the missing barrier.
This is part of XSA-218.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
master commit: 4b78efa91c
master date: 2017-06-20 14:34:34 +0200
This commit is contained in:
1 parent
773094e240
commit
c5de05e82f
1 file changed
+2
@@ -908,7 +908,9 @@ __gnttab_unmap_common(
|
||||
return;
|
||||
}
|
||||
|
||||
smp_rmb();
|
||||
map = &maptrack_entry(lgt, op->handle);
|
||||
|
||||
spin_lock(&lgt->lock);
|
||||
|
||||
if ( unlikely(!map->flags) )
|
||||
|
||||