Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-151916

Virtqemud crash when VFIO hotplug a device

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • rhel-10.2
    • rhel-10.2
    • libvirt
    • Yes
    • Critical
    • rhel-virt-core-libvirt-1
    • 29
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Proposed Exception
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      Hotplug a VF to the guest

      Please provide the package NVR for which the bug is seen:

      libvirt-11.10.0-10.el10.aarch64
      qemu-kvm-10.1.0-13.el10.aarch64
      6.12.0-211.el10.aarch64+64k

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Start vm
      2. Run virsh command:

        virsh attach-interface --domain avocado-vt-vm1 hostdev --source 0002:01:10.0 --mac 9a:2a:38:b5:79:8c --alias ua-08385d76-db52-4ee0-89db-db899ca3553b --managed
        error: Disconnected from qemu:///system due to end of file
        error: Failed to attach interface
        error: End of file while reading data: Input/output error

        The interface xml is below:

        <interface type='hostdev' managed='yes'>
          <source>
            <address type='pci' domain='0x0002' bus='0x01' slot='0x10' function='0x0'/>
          </source>
          <mac address='9a:2a:38:b5:79:8c'/>
          <alias name='ua-08385d76-db52-4ee0-89db-db899ca3553b'/>
        </interface>

      Expected results

      Actual results

      Additional info

      rw-r----. 1 root root 3043715 Feb 25 20:56 core.virtqemud.0.9b3d833f73f4443c9f5637973575a32d.379486.1772071003000000.zst
      {}Type <RET> for more, q to quit, c to continue without paging{-}-c
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib64/libthread_db.so.1".
      Core was generated by `/usr/sbin/virtqemud --timeout 120'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0 0x0000fffbfc0e2a90 in qemuDomainAttachHostPCIDevice (driver=0xfffbb4006750, vm=0xfffbf001f790, hostdev=0xfffbf400b150) at ../src/qemu/qemu_hotplug.c:1652
      1652 if ((ret = qemuFDPassDirectTransferMonitor(hostdevPriv->vfioDeviceFd, priv->mon)) < 0)
      [Current thread is 1 (Thread 0xfffbffa7ed80 (LWP 379489))]

      See attachment for gdb trace.

      There is no issue in libvirt-11.10.0-9

              phrdina@redhat.com Pavel Hrdina
              rhn-support-dzheng Dan Zheng
              Pavel Hrdina Pavel Hrdina
              Dan Zheng Dan Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: