From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiCZP-0000sM-G6 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 23:01:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiCZK-0006s9-M7 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 23:01:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiCZK-0006rv-HD for qemu-devel@nongnu.org; Mon, 21 Mar 2016 23:01:18 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 1139CD7904 for ; Tue, 22 Mar 2016 03:01:17 +0000 (UTC) Date: Tue, 22 Mar 2016 11:01:12 +0800 From: Peter Xu Message-ID: <20160322030112.GA28183@pxdev.xzpeter.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: Bandan Das Cc: Alex Williamson , qemu-devel 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 -- peterx