Linux virtualization list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Xiang Lei" <leixiang@kylinos.cn>
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] vduse: allocate anon inode file after domain initialization
Date: Tue, 01 Dec 2026 06:27:54 +0000	[thread overview]
Message-ID: <sashiko-outbox-242698@kernel.org> (raw)
In-Reply-To: <20261201062510.75707-1-leixiang@kylinos.cn>

> vduse_domain_create() creates the anon-inode file before initializing
> stream_iovad and consistent_iovad. If rcache initialization fails, the
> error path calls fput(file) and frees domain synchronously, while the
> deferred __fput() later runs vduse_domain_release() on the freed domain,
> causing a use-after-free and double-free.
> 
> Move anon_inode_getfile() after both IOVA domains are initialized so
> failures clean up synchronously without calling fput().
> 
> Fixes: 32e92d9f6f87 ("iommu/iova: Separate out rcache init")
> Cc: stable@vger.kernel.org
> Signed-off-by: Xiang Lei <leixiang@kylinos.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201062510.75707-1-leixiang@kylinos.cn?part=1

  reply	other threads:[~2026-12-01  6:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  6:25 [PATCH] vduse: allocate anon inode file after domain initialization Xiang Lei
2026-12-01  6:27 ` sashiko-bot [this message]
2026-12-01 10:39 ` Eugenio Perez Martin

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-242698@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=leixiang@kylinos.cn \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox