[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220912040002.198191-1-m.v.b@runbox.com>
Date: Mon, 12 Sep 2022 00:00:00 -0400
From: "M. Vefa Bicakci" <m.v.b@...box.com>
To: xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org
Cc: m.v.b@...box.com, Juergen Gross <jgross@...e.com>,
Stefano Stabellini <sstabellini@...nel.org>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@...m.com>,
Demi Marie Obenour <demi@...isiblethingslab.com>,
Gerd Hoffmann <kraxel@...hat.com>
Subject: [PATCH 0/2] xen/gntdev: Fixes for leaks and VMA splitting
Hi all,
The changes in this patch series intend to fix the Xen grant device
driver, so that grant mapping leaks caused by partially failed grant
mapping operations are avoided with the first patch, and so that the
splitting of VMAs does not result in incorrectly unmapped grant pages
with the second patch. The second patch also prevents a similar issue in
a double-mapping scenario, where mmap() is used with MAP_FIXED to map
grants over an existing mapping created with the same grants, and where
grant pages are unmapped incorrectly as well.
These commits were tested on top of Linux v5.15.67, but I have also
verified that they compile fine on top of the base commit mentioned at
the bottom of this cover letter. The base commit in question is tagged
as "next-20220909".
Thank you,
Vefa
M. Vefa Bicakci (2):
xen/gntdev: Prevent leaking grants
xen/gntdev: Accommodate VMA splitting
drivers/xen/gntdev-common.h | 3 +-
drivers/xen/gntdev.c | 90 +++++++++++++++++++++----------------
2 files changed, 54 insertions(+), 39 deletions(-)
base-commit: 9a82ccda91ed2b40619cb3c10d446ae1f97bab6e
--
2.37.3
Powered by blists - more mailing lists