From: Ian Campbell Subject: Re: [PATCH v2] linux_gntshr_munmap: munmap takes a length, not a page count Date: Wed, 10 Sep 2014 15:09:07 +0100 Message-ID: <1410358147.5894.0.camel@kazak.uk.xensource.com> References: <1409573807-15801-1-git-send-email-dave.scott@citrix.com> <1409765661-9927-1-git-send-email-dave.scott@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XRibi-0000UX-Cu for xen-devel@lists.xenproject.org; Wed, 10 Sep 2014 14:10:50 +0000 In-Reply-To: <1409765661-9927-1-git-send-email-dave.scott@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Scott Cc: xen-devel@lists.xenproject.org, Andrew.Cooper3@citrix.com, ian.jackson@eu.citrix.com, david.vrabel@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-09-03 at 18:34 +0100, David Scott wrote: > This fixes a bug where if a client shares more than 1 page, the > munmap call fails to clean up everything. A process which does > a lot of sharing and unsharing can run out of resources. > > This patch also fixes in-tree callers of > - xc_gntshr_munmap > - xc_gnttab_munmap > to supply page counts rather than lengths. > > Signed-off-by: David Scott Acked + applied, thanks.