[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen stable-4.8] grant: Release domain lock on 'map' path in cache_flush
From: patchbot () xen ! org
Date: 2018-03-29 1:24:04
Message-ID: E1f1MIO-0006qa-PC () xenbits ! xenproject ! org
[Download RAW message or body]
commit 1901f625391125f554169acaeaaa3b5cd01fc187
Author: George Dunlap <george.dunlap@citrix.com>
AuthorDate: Tue Mar 6 16:14:35 2018 +0100
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Tue Mar 6 16:14:35 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@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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
index 58cad3a6d4..31a19d76a5 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.8
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic