From 2a7828bae8321c3064e3f27a4c4d96b4281182cb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Nov 06 2023 14:53:21 +0000 Subject: libvirt-9.9.0-2 Fix crash with snapshot restore (bz #2247754) --- diff --git a/0001-qemu_process-fix-crash-in-qemuSaveImageDecompression.patch b/0001-qemu_process-fix-crash-in-qemuSaveImageDecompression.patch new file mode 100644 index 0000000..dcd3fa0 --- /dev/null +++ b/0001-qemu_process-fix-crash-in-qemuSaveImageDecompression.patch @@ -0,0 +1,34 @@ +From: Pavel Hrdina +Date: Fri, 3 Nov 2023 14:03:55 +0100 +Subject: [PATCH] qemu_process: fix crash in qemuSaveImageDecompressionStart +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +Content-type: text/plain + +Commit changing the code to allow passing NULL as @data into +qemuSaveImageDecompressionStart() was not correct as it left the +original call into the function as well. + +Introduced-by: 2f3e582a1ac1008eba8d43c751cdba8712dd1614 +Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2247754 +Signed-off-by: Pavel Hrdina +Reviewed-by: Ján Tomko +--- + src/qemu/qemu_process.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c +index 1ef032dbd2..b9267d8699 100644 +--- a/src/qemu/qemu_process.c ++++ b/src/qemu/qemu_process.c +@@ -8208,9 +8208,6 @@ qemuProcessStartWithMemoryState(virConnectPtr conn, + } + } + +- if (qemuSaveImageDecompressionStart(data, fd, &intermediatefd, &errbuf, &cmd) < 0) +- return -1; +- + /* No cookie means libvirt which saved the domain was too old to mess up + * the CPU definitions. + */ diff --git a/libvirt.spec b/libvirt.spec index 51d1113..6679ae9 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -241,7 +241,7 @@ Summary: Library providing a simple virtualization API Name: libvirt Version: 9.9.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OFL-1.1 URL: https://libvirt.org/ @@ -250,6 +250,9 @@ URL: https://libvirt.org/ %endif Source: https://download.libvirt.org/%{?mainturl}libvirt-%{version}.tar.xz +# Fix crash with snapshot restore (bz #2247754) +Patch0001: 0001-qemu_process-fix-crash-in-qemuSaveImageDecompression.patch + Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} Requires: libvirt-daemon-config-nwfilter = %{version}-%{release} @@ -2500,6 +2503,9 @@ exit 0 %changelog +* Mon Nov 06 2023 Cole Robinson - 9.9.0-2 +- Fix crash with snapshot restore (bz #2247754) + * Wed Nov 01 2023 Cole Robinson - 9.9.0-1 - Update to version 9.9.0