From: sashiko-bot@kernel.org
To: "Mingbing Zhai" <zhaimingbing@cmss.chinamobile.com>
Cc: virtualization@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] virtio_input: clear the virtqueue pointers on freeze
Date: Thu, 03 Dec 2026 01:27:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-246897@kernel.org> (raw)
In-Reply-To: <20261203012445.1202-1-zhaimingbing@cmss.chinamobile.com>
> virtinput_freeze() tears down the virtqueues with del_vqs() but
> leaves vi->evt and vi->sts pointing at the freed memory. If the
> resume then fails (virtio_find_vqs() in virtinput_restore() fails),
> the driver stays bound and the next freeze or remove uses the freed
> queues in virtqueue_detach_unused_buf() and calls del_vqs() a second
> time -- on virtio-mmio that also frees the same IRQs again.
>
> Factor the detach and del_vqs() into virtinput_del_vqs(), clear the
> pointers after the queues are gone, and make it a no-op once they
> are. This mirrors the hwrng (0f7bf47f5a0c) and vsock (2a24ba1694f1)
> fixes for a failed restore.
>
> Fixes: 271c865161c5 ("Add virtio-input driver.")
> Fixes: 528d92bfc093 ("virtio_input: Improve freeze handling")
> Cc: stable@vger.kernel.org
> Signed-off-by: Mingbing Zhai <zhaimingbing@cmss.chinamobile.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203012445.1202-1-zhaimingbing@cmss.chinamobile.com?part=1
prev parent reply other threads:[~2026-12-03 1:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 1:24 [PATCH] virtio_input: clear the virtqueue pointers on freeze Mingbing Zhai
2026-12-03 1:27 ` sashiko-bot [this message]
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-246897@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
--cc=zhaimingbing@cmss.chinamobile.com \
/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