From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ7B-0005Sg-PH for qemu-devel@nongnu.org; Wed, 14 May 2014 09:21:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkZ75-0006MK-Fj for qemu-devel@nongnu.org; Wed, 14 May 2014 09:20:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ75-0006M8-09 for qemu-devel@nongnu.org; Wed, 14 May 2014 09:20:51 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4EDKn82019511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 May 2014 09:20:50 -0400 From: Juan Quintela In-Reply-To: <1399973136-21527-1-git-send-email-mst@redhat.com> (Michael S. Tsirkin's message of "Tue, 13 May 2014 12:33:16 +0300") References: <1399973136-21527-1-git-send-email-mst@redhat.com> Date: Wed, 14 May 2014 15:20:30 +0200 Message-ID: <871tvwebtt.fsf@elfo.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] usb: fix up post load checks Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Gerd Hoffmann , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" "Michael S. Tsirkin" wrote: > Correct post load checks: > 1. dev->setup_len == sizeof(dev->data_buf) > seems fine, no need to fail migration > 2. When state is DATA, passing index > len > will cause memcpy with negative length, > resulting in heap overflow > > First of the issues was reported by dgilbert. > > Reported-by: "Dr. David Alan Gilbert" > Signed-off-by: Michael S. Tsirkin Thanks, applied.