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

[Xen-changelog] [linux-2.6.18-xen] netback: correct netbk_tx_err() to handle wrap around


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Tue, 05 Feb 2013 13:33:03 +0000
  • Delivery-date: Tue, 05 Feb 2013 13:42:15 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1360056227 -3600
# Node ID d962d1681b10974cf6bcdc4240c904c712db3e62
# Parent  5108c6901b3057c52c180b589469c68ea9c2121f
netback: correct netbk_tx_err() to handle wrap around

This is CVE-2013-0216 / XSA-39.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 5108c6901b30 -r d962d1681b10 drivers/xen/netback/netback.c
--- a/drivers/xen/netback/netback.c     Tue Feb 05 10:20:09 2013 +0100
+++ b/drivers/xen/netback/netback.c     Tue Feb 05 10:23:47 2013 +0100
@@ -1011,7 +1011,7 @@ static void netbk_tx_err(netif_t *netif,
 
        do {
                make_tx_response(netif, txp, NETIF_RSP_ERROR);
-               if (cons >= end)
+               if (cons == end)
                        break;
                txp = RING_GET_REQUEST(&netif->tx, cons++);
        } while (1);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.