[xen staging] xsm, argo: notify: don't describe rings that cannot be sent to

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] xsm, argo: notify: don't describe rings that cannot be sent to

patchbot
commit 2be7f17e4b9884947888e442ef0a445d5523d15d
Author:     Christopher Clark <[hidden email]>
AuthorDate: Wed Feb 6 09:56:00 2019 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Thu Feb 7 14:26:30 2019 +0100

    xsm, argo: notify: don't describe rings that cannot be sent to
   
    Signed-off-by: Christopher Clark <[hidden email]>
    Acked-by: Daniel De Graaf <[hidden email]>
    Tested-by: Chris Patterson <[hidden email]>
    Release-acked-by: Juergen Gross <[hidden email]>
---
 xen/common/argo.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/xen/common/argo.c b/xen/common/argo.c
index 7523f32af5..13052b9239 100644
--- a/xen/common/argo.c
+++ b/xen/common/argo.c
@@ -1342,6 +1342,17 @@ fill_ring_data(const struct domain *currd,
     if ( !dst_d || !dst_d->argo )
         goto out;
 
+    /*
+     * Don't supply information about rings that a guest is not
+     * allowed to send to.
+     */
+    ret = xsm_argo_send(currd, dst_d);
+    if ( ret )
+    {
+        put_domain(dst_d);
+        return ret;
+    }
+
     read_lock(&dst_d->argo->rings_L2_rwlock);
 
     ring_info = find_ring_info_by_match(dst_d, ent.ring.aport,
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog