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

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



commit 7bd09b1c84b307a284fe9bec7ae5b15166bed42d
Author:     George Dunlap <george.dunlap@xxxxxxxxxx>
AuthorDate: Tue Mar 6 16:05:28 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Mar 6 16:05:28 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 c39826c0e9..5badc58677 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -3125,6 +3125,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.9

_______________________________________________
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®.