From: sashiko-bot@kernel.org
To: "chenglong ma" <longpareto@gmail.com>
Cc: virtualization@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH v3] vduse: don't set VM_IO on the domain file mapping
Date: Mon, 30 Nov 2026 10:05:45 +0000 [thread overview]
Message-ID: <sashiko-outbox-240828@kernel.org> (raw)
In-Reply-To: <20261130095135.862-1-longpareto@gmail.com>
> Commit bb2e6f166547 ("vduse: fix VA/PA confusion in the coherent page
> fault path") set VM_IO on the domain mapping to keep vhost-vdpa from
> importing it. Since 99fd6bf43d5d, the MM rejects VM_IO on mm-managed
> mappings. As a result, mmap() of the domain file warns and returns
> -EINVAL, breaking VDUSE userspace.
>
> Drop VM_IO so that userspace can mmap the domain file again. This also
> makes shared mappings of VDUSE domain files eligible for import through
> vhost-vdpa. The existing file pointer comparison rejects the target
> domain's own file but allows a file belonging to another VDUSE domain.
> Each imported entry holds a file reference, so accepting another
> domain's file would allow the two domains to hold references to each
> other.
>
> All VDUSE domain files use vduse_domain_fops. Check the file operations
> at import time and reject any such file before taking a reference.
>
> Fixes: bb2e6f166547 ("vduse: fix VA/PA confusion in the coherent page fault path")
> Cc: stable@vger.kernel.org
> Reported-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> Closes: https://lore.kernel.org/r/awWOpS3HR_2FTN3I@gremlin
> Suggested-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> Signed-off-by: chenglong ma <longpareto@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130095135.862-1-longpareto@gmail.com?part=1
next prev parent reply other threads:[~2026-11-30 10:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:29 [PATCH v2] vduse: don't set VM_IO on the domain file mapping chenglong ma
2026-11-26 6:42 ` sashiko-bot
2026-11-30 9:51 ` [PATCH v3] " chenglong ma
2026-11-30 10:05 ` sashiko-bot [this message]
2026-12-01 13:33 ` Lorenzo Stoakes (ARM)
2026-12-01 13:37 ` Michael S. Tsirkin
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=sashiko-outbox-240828@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=longpareto@gmail.com \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.