From: Dickson Wu via B4 Relay <devnull+dickson.wu.certik.com@kernel.org>
To: stable@vger.kernel.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Denis V. Lunev" <den@openvz.org>,
David Hildenbrand <david@kernel.org>,
Eric Auger <eric.auger@redhat.com>,
Jason Wang <jasowang@redhat.com>,
virtualization@lists.linux.dev
Subject: [PATCH 6.12.y v2 0/4] virtio_balloon: quiesce balloon work before device shutdown
Date: Thu, 26 Nov 2026 06:18:40 +0000 [thread overview]
Message-ID: <20261126-virtio-final-v2-0-4cfd5590e924@certik.com> (raw)
Hi,
This backports the fix for CVE-2026-90129 to 6.12.y, the same four
commits 6.18.y has:
183a08715af1 virtgpu: don't reset on shutdown
0d8aebe089b4 virtio: add virtio_device_shutdown() helper
29536a923a94 virtio_balloon: factor out virtballoon_quiesce()
7e17eef04600 virtio_balloon: quiesce balloon work before device shutdown
Since 8bd2fa086a04 the generic virtio shutdown breaks and resets the
device while the balloon's work items can still be running against it.
Patch 4 quiesces that work first. Patches 1-3 are what it builds on.
3 and 4 are clean picks. 1 and 2 needed small changes. 6.12 has no
reset_prepare/reset_done in struct virtio_driver, so patch 1 adds only
the .shutdown member. 6.12 has no virtio_irq_get_affinity(), so patch 2
puts the new helper right above virtio_dev_shutdown(). The function
bodies match upstream.
Tested on v6.12.119:
- x86_64 allmodconfig W=1 build of the touched objects, base vs
patched, no new warnings
- x86_64 defconfig plus the touched virtio options boots and powers off
under QEMU/KVM
- The race needs a balloon with free page reporting plus a reboot or
kexec while it's busy. I didn't reproduce that.
6.1.y and 6.6.y need this too. I'll follow up for those once they're
tested.
Changes in v2
v2: resent through a whitespace-safe path; v1 was damaged by my mail client and does not apply.
The backport and the test runs were prepared with AI coding tools
(OpenAI Codex agents, with review by Claude). I went over the result
before signing off.
Thanks,
Dickson
---
Denis V. Lunev (3):
virtio: add virtio_device_shutdown() helper
virtio_balloon: factor out virtballoon_quiesce()
virtio_balloon: quiesce balloon work before device shutdown
Michael S. Tsirkin (1):
virtgpu: don't reset on shutdown
drivers/gpu/drm/virtio/virtgpu_drv.c | 9 ++++++++
drivers/virtio/virtio.c | 41 ++++++++++++++++++++++++++----------
drivers/virtio/virtio_balloon.c | 34 ++++++++++++++++++++++++------
include/linux/virtio.h | 4 ++++
4 files changed, 70 insertions(+), 18 deletions(-)
---
base-commit: e2e4b92c2b2a3ae78423cb343951cb5d2241b405
change-id: 20261126-virtio-final-875140b7fdaa
Best regards,
--
Dickson Wu <dickson.wu@certik.com>
next reply other threads:[~2026-11-26 6:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:18 Dickson Wu via B4 Relay [this message]
2026-11-26 6:18 ` [PATCH 6.12.y v2 1/4] virtgpu: don't reset on shutdown Dickson Wu via B4 Relay
2026-11-26 6:18 ` [PATCH 6.12.y v2 2/4] virtio: add virtio_device_shutdown() helper Dickson Wu via B4 Relay
2026-11-26 6:18 ` [PATCH 6.12.y v2 3/4] virtio_balloon: factor out virtballoon_quiesce() Dickson Wu via B4 Relay
2026-11-26 6:18 ` [PATCH 6.12.y v2 4/4] virtio_balloon: quiesce balloon work before device shutdown Dickson Wu via B4 Relay
2026-11-26 6:43 ` [PATCH 6.12.y v2 0/4] " sashiko-bot
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=20261126-virtio-final-v2-0-4cfd5590e924@certik.com \
--to=devnull+dickson.wu.certik.com@kernel.org \
--cc=david@kernel.org \
--cc=den@openvz.org \
--cc=dickson.wu@certik.com \
--cc=eric.auger@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=stable@vger.kernel.org \
--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