Re: [libvirt PATCH] qemu: Avoid segfault when driver initialization fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/26/21 5:08 PM, Jiri Denemark wrote:
In case qemuStateInitialize fails for any reason (e.g., a typo in
qemu.conf), it properly cleans up after itself and sets qemu_driver back
to NULL. A tiny bit later the daemon asks all drivers to shutdown by
calling their stateShutdown* APIs. But the implementation of these APIs
in QEMU driver expected qemu_driver to be initialized at this point
causing a segfault otherwise.

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
  src/qemu/qemu_driver.c | 6 ++++++
  1 file changed, 6 insertions(+)

This patch looks familiar :-)

https://www.redhat.com/archives/libvir-list/2021-January/msg00955.html

I'm working on alternative approach. Will send shortly.

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux