Bug 2129239
Summary: | virtqemud coredump after restart virtqemud with a vm running with a hostdev interface | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | yalzhang <yalzhang> | ||||
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> | ||||
libvirt sub component: | General | QA Contact: | yalzhang <yalzhang> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | unspecified | ||||||
Priority: | unspecified | CC: | jdenemar, lmen, mprivozn, pkrempa, virt-maint, xuzhang, yicui | ||||
Version: | 9.1 | Keywords: | Automation, AutomationTriaged, Regression, Upstream | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libvirt-8.8.0-1.el9 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2023-05-09 07:27:15 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | 8.8.0 | ||||
Embargoed: | |||||||
Attachments: |
|
Description
yalzhang@redhat.com
2022-09-23 03:15:33 UTC
Looking through the backtraces a common theme seemes to be: #0 qemuDomainDeviceHostdevDefPostParseRestoreBackendAlias (parseFlags=<optimized out>, hostdev=0x7f4024094210) at ../src/qemu/qemu_domain.c:5596 #1 qemuDomainHostdevDefPostParse (parseFlags=<optimized out>, qemuCaps=0x7f40240d00a0, hostdev=0x7f4024094210) at ../src/qemu/qemu_domain.c:5628 #2 qemuDomainDeviceDefPostParse (dev=<optimized out>, def=<optimized out>, parseFlags=<optimized out>, opaque=0x7f4024023250, parseOpaque=0x7f40240d00a0) at ../src/qemu/qemu_domain.c:5784 Patch posted on the list: https://listman.redhat.com/archives/libvir-list/2022-September/234447.html Merged upstream: commit a8947db1a4efc6fc53dabb67b74ba1c01c7fbc8b Author: Michal Prívozník <mprivozn> AuthorDate: Fri Sep 23 15:06:19 2022 +0200 Commit: Michal Prívozník <mprivozn> CommitDate: Fri Sep 23 15:28:34 2022 +0200 qemu_domain: Ignore all but SCSI hostdevs in qemuDomainDeviceHostdevDefPostParseRestoreBackendAlias() When retiring QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI capability the commit removed a bit too much. Previously, all other devices than VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI were ignored in qemuDomainDeviceHostdevDefPostParseRestoreBackendAlias(). But the commit in question removed not only the capability check but also this return early statement. Restore it back. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2129239 Fixes: dc8dbb27d40968c9d9bfad2c6181bccc20c0e44e Signed-off-by: Michal Privoznik <mprivozn> Reviewed-by: Peter Krempa <pkrempa> Reviewed-by: Martin Kletzander <mkletzan> v8.7.0-130-ga8947db1a4 Reproduce the bug on libvirt-8.7.0-1.el9.x86_64 with the steps in comment 0, then update the libvirt to libvirt-8.8.0-1.el9.x86_64, re-test with the steps, no coredump found. Test on libvirt-8.8.0-1.el9.x86_64 with steps in comment 0, the issuse is fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (libvirt bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2171 |