]> xenbits.xensource.com Git - xen.git/commitdiff
grant: Release domain lock on 'map' path in cache_flush
authorGeorge Dunlap <george.dunlap@citrix.com>
Tue, 6 Mar 2018 15:23:32 +0000 (16:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Mar 2018 15:23:32 +0000 (16:23 +0100)
common/grant_table.c:cache_flush() grabs the rcu lock for the current
domain, but only releases it on error paths.

Note that this is not a security issue, as the preempt count is used
exclusively for assertions at the moment.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 156b29fca10fd25065fc501eb4b47cff931086f2
master date: 2018-02-27 11:19:27 +0000

xen/common/grant_table.c

index 9ddd4f1e71a7330578ea1ae9679e783b5aaa0365..8e9437d3f869c764e443237baa35210ad11a378d 100644 (file)
@@ -3124,6 +3124,7 @@ static int __gnttab_cache_flush(const gnttab_cache_flush_t *cflush,
 
     unmap_domain_page(v);
     put_page(page);
+    rcu_unlock_domain(d);
 
     return ret;
 }