Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp829028ybx; Thu, 7 Nov 2019 03:19:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxl+z9nz/Sf4BqKwmZHVdFyMjzq+7qYu1FgrDFpHRyGSsn6wS3sw/9ZXF/8ptm5OyhLrRk0 X-Received: by 2002:aa7:c253:: with SMTP id y19mr2771453edo.151.1573125598770; Thu, 07 Nov 2019 03:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573125598; cv=none; d=google.com; s=arc-20160816; b=X5wnrXYyugdO9uwYOumSSOqchf2o6VstWxohWGVXJ2v/hyi/IdYWefTyDeg6lmkY56 NG1CJ7jzECuwrLWEZmjAcazDz+8wgZfWWqRe6bYhNfcylV2XD7roYWBvd8G+8CGQTCzk mImwvCqaeWiACPpkuNUbxyDDyE85PKcwBej8/4p9SzgihmS+wvvOAQJDaKFNIjyaFGTY cw+22QrKetd+jk+Y20W9eq7vv69VDJ8TSEdgNBienIAsH+mkRxh+9gsXhllFxucW+WU9 YD+5Ue7d/ZcwOEk7xqNjDqWLFhvL9nmygU1Z8aDD/FmyT9qqhc2/zEE2+JdwwPUaAaYS AyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ZUQLAjj3dc2bPbs1OPMuZvRjOAKCakmNDxBJ1fxLR6Q=; b=XeyGYY3h40ZHzwKXcRFVqUnSbtNmhrmpiwijJuKBrb1TBEF5gJ9dGRJd9IDvlhbM3D eHo3znCzokuT8xSUyktcaeNnRY1bdPfza4D4ekDIL0np/k7QP7TrJml9D3U/rT/0iEaS HT3CwlZQZnPkSLXBHG0LbkMGHEm++Mb7bPgyhhJ3Q8LVxwFgY/wnZL9KsNCX2dw6srZz 0b3Zp3U18JOVBEArIq5ii/NMfWPg1zEz0ECBmyYGoBjLYY4CV8v8+spO5gi9o2Rt9DZ2 CqnIA/A4lArDyjTpsAfcpw3kBHj4e62iFhaV4p2689wsAnaK9EGw/y4iSQeub0awEWLC NFxw== 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 s2si1153077ejj.327.2019.11.07.03.19.35; Thu, 07 Nov 2019 03:19:58 -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 S2388328AbfKGLPu (ORCPT + 99 others); Thu, 7 Nov 2019 06:15:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:39062 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388206AbfKGLPt (ORCPT ); Thu, 7 Nov 2019 06:15:49 -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 9479BAD5F; Thu, 7 Nov 2019 11:15:48 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini Subject: [PATCH v2 0/2] xen/gntdev: sanitize user interface handling Date: Thu, 7 Nov 2019 12:15:44 +0100 Message-Id: <20191107111546.26579-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.16.4