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.

The four patches follow as separate mails with the same "6.12.y n/4"
subjects. My mail setup can't thread them under this one, sorry about
that.

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

Reply via email to