Accepting request 184904 from Virtualization
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/184904 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvirt?expand=0&rev=125
This commit is contained in:
commit
0256997e4b
52
fe89fd3b-storage-pool-deadlock.patch
Normal file
52
fe89fd3b-storage-pool-deadlock.patch
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
commit fe89fd3b4071242ce9bbae6e1178fee30dc2f4f9
|
||||||
|
Author: Ján Tomko <jtomko@redhat.com>
|
||||||
|
Date: Thu Jul 4 14:41:46 2013 +0200
|
||||||
|
|
||||||
|
Unlock the storage volume object after looking it up
|
||||||
|
|
||||||
|
Introduced by c930410.
|
||||||
|
|
||||||
|
https://bugzilla.redhat.com/show_bug.cgi?id=980676
|
||||||
|
|
||||||
|
Index: libvirt-1.1.0/src/storage/storage_driver.c
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-1.1.0.orig/src/storage/storage_driver.c
|
||||||
|
+++ libvirt-1.1.0/src/storage/storage_driver.c
|
||||||
|
@@ -1361,15 +1361,16 @@ storageVolLookupByKey(virConnectPtr conn
|
||||||
|
virStorageVolDefFindByKey(driver->pools.objs[i], key);
|
||||||
|
|
||||||
|
if (vol) {
|
||||||
|
- if (virStorageVolLookupByKeyEnsureACL(conn, driver->pools.objs[i]->def, vol) < 0)
|
||||||
|
+ if (virStorageVolLookupByKeyEnsureACL(conn, driver->pools.objs[i]->def, vol) < 0) {
|
||||||
|
+ virStoragePoolObjUnlock(driver->pools.objs[i]);
|
||||||
|
goto cleanup;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
ret = virGetStorageVol(conn,
|
||||||
|
driver->pools.objs[i]->def->name,
|
||||||
|
vol->name,
|
||||||
|
vol->key,
|
||||||
|
NULL, NULL);
|
||||||
|
- goto cleanup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
virStoragePoolObjUnlock(driver->pools.objs[i]);
|
||||||
|
@@ -1421,15 +1422,16 @@ storageVolLookupByPath(virConnectPtr con
|
||||||
|
VIR_FREE(stable_path);
|
||||||
|
|
||||||
|
if (vol) {
|
||||||
|
- if (virStorageVolLookupByPathEnsureACL(conn, driver->pools.objs[i]->def, vol) < 0)
|
||||||
|
+ if (virStorageVolLookupByPathEnsureACL(conn, driver->pools.objs[i]->def, vol) < 0) {
|
||||||
|
+ virStoragePoolObjUnlock(driver->pools.objs[i]);
|
||||||
|
goto cleanup;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
ret = virGetStorageVol(conn,
|
||||||
|
driver->pools.objs[i]->def->name,
|
||||||
|
vol->name,
|
||||||
|
vol->key,
|
||||||
|
NULL, NULL);
|
||||||
|
- goto cleanup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
virStoragePoolObjUnlock(driver->pools.objs[i]);
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 17:17:42 MDT 2013 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- Unlock the storage volume object after looking it up
|
||||||
|
fe89fd3b-storage-pool-deadlock.patch
|
||||||
|
rhb#980676
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 22 10:39:01 MDT 2013 - jfehlig@suse.com
|
Mon Jul 22 10:39:01 MDT 2013 - jfehlig@suse.com
|
||||||
|
|
||||||
|
@ -408,6 +408,7 @@ Patch0: f38c8185-CVE-2013-2230.patch
|
|||||||
Patch1: fd2e3c4c-xen-sysctl-domctl.patch
|
Patch1: fd2e3c4c-xen-sysctl-domctl.patch
|
||||||
Patch2: dfc69235-CVE-2013-4153.patch
|
Patch2: dfc69235-CVE-2013-4153.patch
|
||||||
Patch3: 96518d43-CVE-2013-4154.patch
|
Patch3: 96518d43-CVE-2013-4154.patch
|
||||||
|
Patch4: fe89fd3b-storage-pool-deadlock.patch
|
||||||
# Need to go upstream
|
# Need to go upstream
|
||||||
Patch100: xen-name-for-devid.patch
|
Patch100: xen-name-for-devid.patch
|
||||||
Patch101: clone.patch
|
Patch101: clone.patch
|
||||||
@ -911,6 +912,7 @@ of recent versions of Linux (and other OSes).
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101
|
%patch101
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user