Accepting request 888065 from home:vulyanov:branches:Virtualization

- Fix virt-launcher crash
  fix-double-free-of-VirDomain.patch

OBS-URL: https://build.opensuse.org/request/show/888065
OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=43
This commit is contained in:
Dirk Mueller 2021-04-25 09:46:20 +00:00 committed by Git OBS Bridge
parent e72904e345
commit 053d2cc39d
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Fix double free of VirDomain
diff --git a/pkg/virt-launcher/virtwrap/manager.go b/pkg/virt-launcher/virtwrap/manager.go
index a3fe15e39..660423269 100644
--- a/pkg/virt-launcher/virtwrap/manager.go
+++ b/pkg/virt-launcher/virtwrap/manager.go
@@ -1494,7 +1494,6 @@ func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, useEmulat
if err != nil {
return nil, err
}
- defer dom.Free()
logger.Info("Domain defined.")
} else {
logger.Reason(err).Error("Getting the domain failed.")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 23 09:50:20 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Fix virt-launcher crash
fix-double-free-of-VirDomain.patch
-------------------------------------------------------------------
Tue Apr 20 13:12:00 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>

View File

@ -29,6 +29,7 @@ Source100: %{name}-rpmlintrc
Patch0: dont-build-virtctl-darwin.patch
Patch1: dont-use-bazel-in-build-manifests.patch
Patch2: fix-virsh-domcapabilities-error.patch
Patch3: fix-double-free-of-VirDomain.patch
BuildRequires: glibc-devel-static
BuildRequires: golang-packaging
BuildRequires: pkgconfig