Received: from eggs.gnu.org ([2001:4830:134:3::10]:45426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYESH-00015r-Fz for qemu-devel@nongnu.org; Fri, 12 Aug 2016 11:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYESD-0006Qb-MC for qemu-devel@nongnu.org; Fri, 12 Aug 2016 11:33:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYESD-0006QU-Gt for qemu-devel@nongnu.org; Fri, 12 Aug 2016 11:33:01 -0400 From: Stefan Hajnoczi Date: Fri, 12 Aug 2016 16:32:54 +0100 Message-Id: <1471015978-1123-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH for-2.7 0/4] virtio-balloon: fix stats vq migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Luiz Capitulino , "Michael S. Tsirkin" , gaudenz@debian.org, Stefan Hajnoczi Gaudenz Steinlin reported that virtqueue_pop() terminates QEMU because the virtqueue size is exceeded following the CVE-2016-5403 fix. I have been unable to reproduce this or understand the root cause by code inspection. Along the way I did discover a few bugs in virtio-balloon and virtio code. Please see the individual patches for details. Gaudenz: If you can reproduce the bug you reported, please try again with these patches applied. Stefan Hajnoczi (4): virtio: recalculate vq->inuse after migration virtio: decrement vq->inuse in virtqueue_discard() virtio: add virtqueue_rewind() virtio-balloon: fix stats vq migration hw/virtio/virtio-balloon.c | 10 ++++++++++ hw/virtio/virtio.c | 37 +++++++++++++++++++++++++++++++++++++ include/hw/virtio/virtio.h | 1 + 3 files changed, 48 insertions(+) -- 2.7.4