[Pkg-libvirt-maintainers] Bug#888954: libvirt-daemon: System freezes when restarting libvirtd while VM is running
Michael Weghorn
m.weghorn at posteo.de
Wed Jan 31 15:02:38 UTC 2018
Package: libvirt-daemon
Version: 4.0.0-1
Severity: important
Dear Maintainer,
when libvirtd is restarted while a VM is running, the system "freezes".
The following steps can be taken in order to reproduce the problem:
* Set up and start a virtual machine using `virt-install`, e.g. as follows:
$ wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.3.0-amd64-netinst.iso
$ virt-install --connect=qemu:///system --name demo --memory 500 --disk none --network none --livecd --cdrom debian-9.3.0-amd64-netinst.iso
* While the virtual machine is running, restart the libvirt daemon:
$ sudo systemctl restart libvirtd.service
This (almost always) leads to the system become "frozen", since a kernel
panic is caused. The output captured on another computer with the "netconsole"
module is given below.
The kernel package in use is linux-image-4.14.0-3-amd64, version 4.14.13-1.
systemd has version 237-1.
Please let me know in case I can provide any additional information that
can be of help.
Since libvirtd and the running VM are causing the kernel panic, I am
reporthing this for the "libvirt-daemon" package. Please let me know or
reassign to another package if this is incorrect.
Best regards,
Michael
PS: I originally was faced with the problem when system freezes started
appearing from time to time when I was doing package updates, since
a systemd trigger causes `systemctl reload-daemon` to be called when
anything underneath `/etc/init.d` is changed...
--- START of output via netconsole on other computer ----
$ nc -l -p 32769 -u
[...]
[ 411.419936] BUG: unable to handle kernel NULL pointer dereference at 00000000000000b0
[ 411.419949] IP: pids_free+0x11/0x40
[ 411.419952] PGD 0 P4D 0
[ 411.419956] Oops: 0000 [#1] SMP PTI
[ 411.419959] Modules linked in: netconsole uas usb_storage configfs ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter devlink intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_hdmi snd_hda_codec_realtek coretemp snd_hda_codec_generic kvm_intel kvm irqbypass snd_hda_intel snd_hda_codec crct10dif_pclmul crc32_pclmul iTCO_wdt iTCO_vendor_support snd_hda_core snd_hwdep evdev ghash_clmulni_intel intel_cstate snd_pcm snd_timer snd soundcore lpc_ich ppdev intel_uncore mfd_core intel_rapl_perf serio_raw wmi_bmof i915 sg pcspkr video drm_kms_helper mei_me mei parport_pc parport drm i2c_algo_bit button wmi ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb sr_mod sd_mod cdrom crc32c_intel aesni_intel aes_x86_64 crypto_simd cryptd glue_helper psmouse i2c_i801
[ 411.420011] ahci libahci libata ehci_pci ehci_hcd scsi_mod e1000e usbcore ptp pps_core usb_common [last unloaded: netconsole]
[ 411.420017] CPU: 0 PID: 1 Comm: systemd Tainted: G W 4.14.0-3-amd64 #1 Debian 4.14.13-1
[ 411.420019] Hardware name: LENOVO 4524BL8/ , BIOS 9HKT53AUS 07/18/2012
[ 411.420022] task: ffff989ab93b1040 task.stack: ffffb57640648000
[ 411.420025] RIP: 0010:pids_free+0x11/0x40
[ 411.420027] RSP: 0018:ffffb5764064bdf0 EFLAGS: 00010246
[ 411.420031] RAX: ffff9899b66688f8 RBX: 0000000000000000 RCX: 000000000000000a
[ 411.420033] RDX: 000000000000000a RSI: 000000000000000b RDI: ffff9899b65bda10
[ 411.420036] RBP: ffff9899b65bda10 R08: 0000000000001000 R09: 0000000000000007
[ 411.420038] R10: 000055593d8fa010 R11: ffff9899b67ac006 R12: ffffffffbd25e0e0
[ 411.420044] R13: ffff9899b66688f8 R14: ffff9899b65bda10 R15: ffff989ab40c3880
[ 411.420047] FS: 00007faa1a71be00(0000) GS:ffff989abe200000(0000) knlGS:0000000000000000
[ 411.420050] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 411.420052] CR2: 00000000000000b0 CR3: 0000000138674005 CR4: 00000000000626f0
[ 411.420055] Call Trace:
[ 411.420059] cgroup_free+0x5c/0xd0
[ 411.420065] __put_task_struct+0x3d/0x150
[ 411.420067] css_task_iter_next+0x6f/0x80
[ 411.420070] kernfs_seq_next+0x23/0x50
[ 411.420074] ? cgroup_procs_show+0x26/0x30
[ 411.420077] seq_read+0x313/0x440
[ 411.420080] vfs_read+0x89/0x130
[ 411.420094] SyS_read+0x52/0xc0
[ 411.420097] system_call_fast_compare_end+0xc/0x6f
[ 411.420099] RIP: 0033:0x7faa1a0278d1
[ 411.420101] RSP: 002b:00007fffa2c40038 EFLAGS: 00000246
[ 411.420103] Code: df e8 54 fd ff ff 48 8b 9b b0 00 00 00 48 83 bb b0 00 00 00 00 75 e7 5b c3 90 66 66 66 66 90 53 48 8b 87 70 08 00 00 48 8b 58 50 <48> 83 bb b0 00 00 00 00 74 19 48 89 df e8 1d fd ff ff 48 8b 9b
[ 411.420130] RIP: pids_free+0x11/0x40 RSP: ffffb5764064bdf0
[ 411.420132] CR2: 00000000000000b0
[ 411.420151] ---[ end trace 065a67a77f1f1d96 ]---
[ 411.456032] systemd: 36 output lines suppressed due to ratelimiting
[ 411.456065] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 411.456065]
[ 411.456112] Kernel Offset: 0x3b200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 411.456121] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 411.456121]
--- END of output via netconsole on other computer ----
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libvirt-daemon depends on:
ii libacl1 2.2.52-3+b1
ii libapparmor1 2.12-2
ii libaudit1 1:2.8.2-1
ii libavahi-client3 0.7-3
ii libavahi-common3 0.7-3
ii libblkid1 2.30.2-0.3
ii libc6 2.26-6
ii libcap-ng0 0.7.7-3.1+b1
ii libcurl3-gnutls 7.58.0-2
ii libdbus-1-3 1.12.2-1
ii libdevmapper1.02.1 2:1.02.145-4.1
ii libfuse2 2.9.7-1
ii libgnutls30 3.5.17-1
ii libnetcf1 1:0.2.8-1+b2
ii libnl-3-200 3.2.27-2
ii libnl-route-3-200 3.2.27-2
ii libnuma1 2.0.11-2.1
ii libparted2 3.2-20
ii libpcap0.8 1.8.1-6
ii libpciaccess0 0.13.4-1+b2
ii libsasl2-2 2.1.27~101-g0780600+dfsg-3
ii libselinux1 2.7-2
ii libssh2-1 1.8.0-1
ii libudev1 237-1
ii libvirt0 4.0.0-1
ii libxen-4.8 4.8.2+xsa245-0+deb9u1
ii libxenstore3.0 4.8.2+xsa245-0+deb9u1
ii libxml2 2.9.4+dfsg1-6.1
ii libyajl2 2.1.0-2+b3
Versions of packages libvirt-daemon recommends:
ii libxml2-utils 2.9.4+dfsg1-6.1
ii netcat-openbsd 1.187-1
ii qemu-kvm 1:2.11+dfsg-1
Versions of packages libvirt-daemon suggests:
pn libvirt-daemon-driver-storage-gluster <none>
pn libvirt-daemon-driver-storage-rbd <none>
pn libvirt-daemon-driver-storage-sheepdog <none>
pn libvirt-daemon-driver-storage-zfs <none>
ii libvirt-daemon-system 4.0.0-1
pn numad <none>
-- no debconf information
More information about the Pkg-libvirt-maintainers
mailing list