From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiRdz-0002ap-8n for qemu-devel@nongnu.org; Tue, 22 Mar 2016 15:07:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiRdv-0003ep-8U for qemu-devel@nongnu.org; Tue, 22 Mar 2016 15:07:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiRdv-0003ef-2t for qemu-devel@nongnu.org; Tue, 22 Mar 2016 15:07:03 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id B9BD578252 for ; Tue, 22 Mar 2016 19:07:02 +0000 (UTC) From: Bandan Das References: <20160322030112.GA28183@pxdev.xzpeter.org> Date: Tue, 22 Mar 2016 15:07:00 -0400 In-Reply-To: <20160322030112.GA28183@pxdev.xzpeter.org> (Peter Xu's message of "Tue, 22 Mar 2016 11:01:12 +0800") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] vfio: add check for memory region overflow condition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: Alex Williamson , qemu-devel Peter Xu writes: > On Mon, Mar 21, 2016 at 06:00:50PM -0400, Bandan Das wrote: >> >> vfio_listener_region_add for a iommu mr results in >> an overflow assert since emulated iommu memory region is initialized >> with UINT64_MAX. Add a check just like memory_region_size() >> does. > > Hi, Bandan, > > In case you missed this: > > https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg02865.html Thank you Peter, I wasn't aware. But unfortunately, I don't think he's doing the right thing either when handing @end ? Oh well, it's a RFC :) > -- peterx