Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6540443ybc; Thu, 28 Nov 2019 00:59:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzVTT0JjG672Tr8LPLOxmCZ9CzgGPZXwObFPuxhDHNdC7FJ52LhGRaXTc/IHOQTwEDQtaKn X-Received: by 2002:a17:906:1ed7:: with SMTP id m23mr53092187ejj.326.1574931575678; Thu, 28 Nov 2019 00:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574931575; cv=none; d=google.com; s=arc-20160816; b=ZTV32QYpP6XgIp0NcMyp9F2GqnBbmqq6+IJ5HF73oBR/KXKIPZMQ6y1BwV97liPyjp rjEyTU6B7JfDTawgaAqFKn0HrzJut/dyTBAb6rVC0hWOmDqJfWCFgv776ffGFgXWmxQu QUDIhpzPZux7RO0bq6MudwlXc2SIc+H7CW3FZZ2w8togdjRWgGhoCPYk6+0Hyc9F6z4M SDFiR/wdexqwgZqFsw8mX82nQ8+Kbs/S4TBHQOf1tn85sFKAeAHKHALLF3cJ2ZDufY1w KPh8Hn6wH9geCPPpkynefVG5NZQI3qHnjAxaq02TIMRYTFxB0ycNuwQbGB3nwZt03w2g CrYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=NpUJ4RqIZFnl52AkT3mLJYkRUp26rPuPYqKf+SP3NGI=; b=lwm3pY7aXNfC9QVVliEttqVsCGyo0g9qhuIY+J20cmkA9w+nz35vVhPKcUzer6kSOd OYOELaALSkvEw6JzUOrwsYDDxFKg22lJ9lWGTE8qql5/biu/4kj63JHWxHFkMKuH2eXg kUbPnhQr48+0AbEgzGUc+RXzH+sRlFmJnqZ7+IHQYnqbAluyO3UaKsqs2qPoASwr9btM zsFdwgLzaQaJNeDxZQIZpskbYcvnuXWZRKk3/DnazQjGrjwaSiNglvN4gN+duz+XxF04 mDsKz2171EBKP2LNWN5sj6/p6FKCNzemTgcKOBHhHDUQBKZVTymzHSUhcL+66sQgRaaR qPEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si11123218ejo.137.2019.11.28.00.59.11; Thu, 28 Nov 2019 00:59:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727432AbfK1Isw (ORCPT + 99 others); Thu, 28 Nov 2019 03:48:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:48160 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726301AbfK1Isw (ORCPT ); Thu, 28 Nov 2019 03:48:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 619A9ACF1; Thu, 28 Nov 2019 08:48:50 +0000 (UTC) Subject: Re: [PATCH v2 0/2] xen/gntdev: sanitize user interface handling To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Boris Ostrovsky , Stefano Stabellini References: <20191107111546.26579-1-jgross@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <442417bc-ec65-0864-0a99-59583a52f866@suse.com> Date: Thu, 28 Nov 2019 09:48:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191107111546.26579-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07.11.19 12:15, Juergen Gross wrote: > The Xen gntdev driver's checking of the number of allowed mapped pages > is in need of some sanitizing work. > > Changes in V2: > - enhanced commit message of patch 1 (Andrew Cooper) > > Juergen Gross (2): > xen/gntdev: replace global limit of mapped pages by limit per call > xen/gntdev: switch from kcalloc() to kvcalloc() > > drivers/xen/gntdev-common.h | 2 +- > drivers/xen/gntdev-dmabuf.c | 11 +++------ > drivers/xen/gntdev.c | 55 +++++++++++++++++++-------------------------- > 3 files changed, 27 insertions(+), 41 deletions(-) > Boris, could you please comment on the patches? Juergen