[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.7] grant: Release domain lock on 'map' path in cache_flush



commit 5570e5f298bd48d55c2756fea025f0e9c89b7997
Author:     George Dunlap <george.dunlap@xxxxxxxxxx>
AuthorDate: Tue Mar 6 16:23:32 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Mar 6 16:23:32 2018 +0100

    grant: Release domain lock on 'map' path in cache_flush
    
    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@xxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
    master commit: 156b29fca10fd25065fc501eb4b47cff931086f2
    master date: 2018-02-27 11:19:27 +0000
---
 xen/common/grant_table.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
index 9ddd4f1e71..8e9437d3f8 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -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;
 }
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.7

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.