Bug 1142722
Summary: | libvirtd dead while destroy one guest with block disk | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xuesong Zhang <xuzhang> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.1 | CC: | dyuan, jtomko, mzhan, rbalakri, yanyang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.8-3.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 07:44:44 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: | |
Embargoed: |
Description
Xuesong Zhang
2014-09-17 09:34:16 UTC
Now pushed upstream: commit 540ee872494316ef5bfc17ef3dd4338080c3e513 Author: Ján Tomko <jtomko> CommitDate: 2014-09-18 09:05:21 +0200 qemu: fix crash with shared disks Commit f36a94f introduced a double free on all success paths in qemuSharedDeviceEntryInsert. Only call qemuSharedDeviceEntryFree on the error path and set entry to NULL before jumping there if the entry already is in the hash table. https://bugzilla.redhat.com/show_bug.cgi?id=1142722 git describe: v1.2.8-192-g540ee87 Verify this bug with the following package version: libvirt-1.2.8-11.el7.x86_64 qemu-kvm-rhev-2.1.2-17.el7.x86_64 kernel-3.10.0-219.el7.x86_64 Steps: 1. add the following block disk to guest with shareable option. <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/sdb'/> <target dev='vdb' bus='virtio'/> <shareable/> </disk> 2. start the geust # virsh start rhel7.1 Domain rhel7.1 started 3. login the geust, make sure the disk is working well in the guest. 4. destroy the guest # virsh destroy rhel7.1 Domain rhel7.1 destroyed 5. checking the libvirtd service status, it is working well, no crash. # service libvirtd status Redirecting to /bin/systemctl status libvirtd.service libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled) Active: active (running) since Fri 2014-12-19 13:20:13 CST; 5h 8min ago Docs: man:libvirtd(8) http://libvirt.org Main PID: 1407 (libvirtd) CGroup: /system.slice/libvirtd.service ├─1407 /usr/sbin/libvirtd ├─3752 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.... └─3753 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.... Dec 19 18:18:07 localhost.localdomain libvirtd[1407]: ignore NIC_RX_FILTER_CH... Dec 19 18:18:11 localhost.localdomain dnsmasq-dhcp[3752]: DHCPDISCOVER(virbr0... Dec 19 18:18:11 localhost.localdomain dnsmasq-dhcp[3752]: DHCPOFFER(virbr0) 1... Dec 19 18:18:11 localhost.localdomain dnsmasq-dhcp[3752]: DHCPREQUEST(virbr0)... Dec 19 18:18:11 localhost.localdomain dnsmasq-dhcp[3752]: DHCPACK(virbr0) 192... Dec 19 18:20:57 localhost.localdomain libvirtd[1407]: ignore NIC_RX_FILTER_CH... Dec 19 18:21:01 localhost.localdomain dnsmasq-dhcp[3752]: DHCPDISCOVER(virbr0... Dec 19 18:21:01 localhost.localdomain dnsmasq-dhcp[3752]: DHCPOFFER(virbr0) 1... Dec 19 18:21:01 localhost.localdomain dnsmasq-dhcp[3752]: DHCPREQUEST(virbr0)... Dec 19 18:21:01 localhost.localdomain dnsmasq-dhcp[3752]: DHCPACK(virbr0) 192... Hint: Some lines were ellipsized, use -l to show in full. So change the bug status to verify. 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, 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://rhn.redhat.com/errata/RHSA-2015-0323.html |