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

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



commit 7e0796d3fe1916890e9f2de3f8c737febc1cf996
Author:     George Dunlap <george.dunlap@xxxxxxxxxx>
AuthorDate: Tue Mar 6 15:54:54 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Mar 6 15:54:54 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 b100a287e7..7650e6d449 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -3325,6 +3325,7 @@ static int cache_flush(const gnttab_cache_flush_t 
*cflush, grant_ref_t *cur_ref)
 
     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.10

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