[PATCH 0/2] hw/usb/hcd-ehci: fix the abort after a failed descriptor read

Junjie Cao posted 2 patches 2 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261103123350.1253202-1-junjie.cao@linux.dev
Maintainers: Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
hw/usb/hcd-ehci.c               |  14 ++++
tests/qtest/usb-hcd-ehci-test.c | 119 ++++++++++++++++++++++++++++++++
2 files changed, 133 insertions(+)
[PATCH 0/2] hw/usb/hcd-ehci: fix the abort after a failed descriptor read
Posted by Junjie Cao 2 weeks, 5 days ago
2b2a0e4f465a ("hw/usb/hcd-ehci: Check for DMA errors in
get_dwords()/put_dwords()") lets a guest abort QEMU by pointing a
schedule descriptor at memory that is not there.  It is not in a
release yet; 11.2 would be the first.

Patch 2 adds the qtest: it aborts QEMU on current master and passes
with patch 1.

Junjie Cao (2):
  hw/usb/hcd-ehci: idle the schedule after a failed descriptor read
  tests/qtest/usb-hcd-ehci: test descriptor reads that fail

 hw/usb/hcd-ehci.c               |  14 ++++
 tests/qtest/usb-hcd-ehci-test.c | 119 ++++++++++++++++++++++++++++++++
 2 files changed, 133 insertions(+)

-- 
2.43.0