WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] xsm: Avoid null dereference in flask g

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] xsm: Avoid null dereference in flask get_page_sid
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 Sep 2010 17:35:15 -0700
Delivery-date: Tue, 14 Sep 2010 17:36:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1284396614 -3600
# Node ID 208129cefcb30ae476af9a934008addf04e77cdc
# Parent  99b5871889e38c1b6a252e76dddd999b99ae5d7f
xsm: Avoid null dereference in flask get_page_sid

From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
xen-unstable changeset:   22144:ec31bb01c424
xen-unstable date:        Mon Sep 13 17:27:22 2010 +0100
---
 xen/xsm/flask/hooks.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 99b5871889e3 -r 208129cefcb3 xen/xsm/flask/hooks.c
--- a/xen/xsm/flask/hooks.c     Mon Sep 13 17:21:06 2010 +0100
+++ b/xen/xsm/flask/hooks.c     Mon Sep 13 17:50:14 2010 +0100
@@ -340,7 +340,10 @@ static int get_page_sid(struct page_info
         default:
             /*Pages are implicitly labeled by domain ownership!*/
             dsec = d->ssid;
-            *sid = dsec->sid;
+            if (dsec)
+                *sid = dsec->sid;
+            else
+                rc = -ENOENT;
         break;
     }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] xsm: Avoid null dereference in flask get_page_sid, Xen patchbot-4.0-testing <=