mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "M. Vefa Bicakci" <m.v.b@runbox.com>
To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org
Cc: m.v.b@runbox.com, Juergen Gross <jgross@suse.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
	Demi Marie Obenour <demi@invisiblethingslab.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: [PATCH 0/2] xen/gntdev: Fixes for leaks and VMA splitting
Date: Mon, 12 Sep 2022 00:00:00 -0400	[thread overview]
Message-ID: <20220912040002.198191-1-m.v.b@runbox.com> (raw)

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


             reply	other threads:[~2022-09-12  4:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  4:00 M. Vefa Bicakci [this message]
2022-09-12  4:00 ` [PATCH 1/2] xen/gntdev: Prevent leaking grants M. Vefa Bicakci
2022-09-19  9:52   ` Juergen Gross
2022-09-23  1:48     ` M. Vefa Bicakci
2022-09-12  4:00 ` [PATCH 2/2] xen/gntdev: Accommodate VMA splitting M. Vefa Bicakci
2022-09-19 10:32   ` Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220912040002.198191-1-m.v.b@runbox.com \
    --to=m.v.b@runbox.com \
    --cc=demi@invisiblethingslab.com \
    --cc=jgross@suse.com \
    --cc=kraxel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleksandr_tyshchenko@epam.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®