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] [linux-2.6.18-xen] net accel: Prevent frontend network a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] net accel: Prevent frontend network accelerator plugin loading in dom0
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Feb 2008 07:10:32 -0800
Delivery-date: Mon, 11 Feb 2008 07:11:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 1202723755 0
# Node ID 2276cd5e2341360bad83f2d45f75bfb02751f6d4
# Parent  c71467ad40d13477cf06c809d59ce58e64abdfda
net accel: Prevent frontend network accelerator plugin loading in dom0

Generate error if frontend plugin tries to connect on dom0

Signed-off-by: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
---
 drivers/xen/netfront/accel.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r c71467ad40d1 -r 2276cd5e2341 drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c      Mon Feb 11 09:55:25 2008 +0000
+++ b/drivers/xen/netfront/accel.c      Mon Feb 11 09:55:55 2008 +0000
@@ -446,6 +446,9 @@ int netfront_accelerator_loaded(int vers
 {
        struct netfront_accelerator *accelerator;
 
+       if (is_initial_xendomain())
+               return -EINVAL;
+
        if (version != NETFRONT_ACCEL_VERSION) {
                if (version > NETFRONT_ACCEL_VERSION) {
                        /* Caller has higher version number, leave it

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] net accel: Prevent frontend network accelerator plugin loading in dom0, Xen patchbot-linux-2.6.18-xen <=