1 |
commit: 0aa71d9e20099e4c0fece7d4b4a36d603270430d |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 11 17:23:38 2021 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 11 18:01:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa71d9e |
7 |
|
8 |
app-emulation/libvirt: drop unused patch |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
12 |
|
13 |
...10.0-Fix-segfault-when-parsing-mdev-types.patch | 61 ---------------------- |
14 |
1 file changed, 61 deletions(-) |
15 |
|
16 |
diff --git a/app-emulation/libvirt/files/libvirt-6.10.0-Fix-segfault-when-parsing-mdev-types.patch b/app-emulation/libvirt/files/libvirt-6.10.0-Fix-segfault-when-parsing-mdev-types.patch |
17 |
deleted file mode 100644 |
18 |
index 207cc20ba09..00000000000 |
19 |
--- a/app-emulation/libvirt/files/libvirt-6.10.0-Fix-segfault-when-parsing-mdev-types.patch |
20 |
+++ /dev/null |
21 |
@@ -1,61 +0,0 @@ |
22 |
-From 4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a Mon Sep 17 00:00:00 2001 |
23 |
-Message-Id: <4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a.1607416232.git.mprivozn@××××××.com> |
24 |
-From: Jonathon Jongsma <jjongsma@××××××.com> |
25 |
-Date: Wed, 2 Dec 2020 11:52:39 -0600 |
26 |
-Subject: [PATCH] conf: Fix segfault when parsing mdev types |
27 |
-MIME-Version: 1.0 |
28 |
-Content-Type: text/plain; charset=UTF-8 |
29 |
-Content-Transfer-Encoding: 8bit |
30 |
- |
31 |
-Commit f1b0890 introduced a potential crash due to incorrect operator |
32 |
-precedence when accessing an element from a pointer to an array. |
33 |
- |
34 |
-Backtrace below: |
35 |
- |
36 |
- #0 virNodeDeviceGetMdevTypesCaps (sysfspath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", mdev_types=0x7fff801c9b40, nmdev_types=0x7fff801c9b48) at ../src/conf/node_device_conf.c:2676 |
37 |
- #1 0x00007ffff7caf53d in virNodeDeviceGetPCIDynamicCaps (sysfsPath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", pci_dev=0x7fff801c9ac8) at ../src/conf/node_device_conf.c:2705 |
38 |
- #2 0x00007ffff7cae38f in virNodeDeviceUpdateCaps (def=0x7fff80168a10) at ../src/conf/node_device_conf.c:2342 |
39 |
- #3 0x00007ffff7cb11c0 in virNodeDeviceObjMatch (obj=0x7fff84002e50, flags=0) at ../src/conf/virnodedeviceobj.c:850 |
40 |
- #4 0x00007ffff7cb153d in virNodeDeviceObjListExportCallback (payload=0x7fff84002e50, name=0x7fff801cbc20 "pci_0000_00_02_0", opaque=0x7fffe2ffc6a0) at ../src/conf/virnodedeviceobj.c:909 |
41 |
- #5 0x00007ffff7b69146 in virHashForEach (table=0x7fff9814b700 = {...}, iter=0x7ffff7cb149e <virNodeDeviceObjListExportCallback>, opaque=0x7fffe2ffc6a0) at ../src/util/virhash.c:394 |
42 |
- #6 0x00007ffff7cb1694 in virNodeDeviceObjListExport (conn=0x7fff98013170, devs=0x7fff98154430, devices=0x7fffe2ffc798, filter=0x7ffff7cf47a1 <virConnectListAllNodeDevicesCheckACL>, flags=0) |
43 |
- at ../src/conf/virnodedeviceobj.c:943 |
44 |
- #7 0x00007fffe00694b2 in nodeConnectListAllNodeDevices (conn=0x7fff98013170, devices=0x7fffe2ffc798, flags=0) at ../src/node_device/node_device_driver.c:228 |
45 |
- #8 0x00007ffff7e703aa in virConnectListAllNodeDevices (conn=0x7fff98013170, devices=0x7fffe2ffc798, flags=0) at ../src/libvirt-nodedev.c:130 |
46 |
- #9 0x000055555557f796 in remoteDispatchConnectListAllNodeDevices (server=0x555555627080, client=0x5555556bf050, msg=0x5555556c0000, rerr=0x7fffe2ffc8a0, args=0x7fffd4008470, ret=0x7fffd40084e0) |
47 |
- at src/remote/remote_daemon_dispatch_stubs.h:1613 |
48 |
- #10 0x000055555557f6f9 in remoteDispatchConnectListAllNodeDevicesHelper (server=0x555555627080, client=0x5555556bf050, msg=0x5555556c0000, rerr=0x7fffe2ffc8a0, args=0x7fffd4008470, ret=0x7fffd40084e0) |
49 |
- at src/remote/remote_daemon_dispatch_stubs.h:1591 |
50 |
- #11 0x00007ffff7ce9542 in virNetServerProgramDispatchCall (prog=0x555555690c10, server=0x555555627080, client=0x5555556bf050, msg=0x5555556c0000) at ../src/rpc/virnetserverprogram.c:428 |
51 |
- #12 0x00007ffff7ce90bd in virNetServerProgramDispatch (prog=0x555555690c10, server=0x555555627080, client=0x5555556bf050, msg=0x5555556c0000) at ../src/rpc/virnetserverprogram.c:302 |
52 |
- #13 0x00007ffff7cf042b in virNetServerProcessMsg (srv=0x555555627080, client=0x5555556bf050, prog=0x555555690c10, msg=0x5555556c0000) at ../src/rpc/virnetserver.c:137 |
53 |
- #14 0x00007ffff7cf04eb in virNetServerHandleJob (jobOpaque=0x5555556b66b0, opaque=0x555555627080) at ../src/rpc/virnetserver.c:154 |
54 |
- #15 0x00007ffff7bd912f in virThreadPoolWorker (opaque=0x55555562bc70) at ../src/util/virthreadpool.c:163 |
55 |
- #16 0x00007ffff7bd8645 in virThreadHelper (data=0x55555562bc90) at ../src/util/virthread.c:233 |
56 |
- #17 0x00007ffff6d90432 in start_thread () at /lib64/libpthread.so.0 |
57 |
- #18 0x00007ffff75c5913 in clone () at /lib64/libc.so.6 |
58 |
- |
59 |
-Signed-off-by: Jonathon Jongsma <jjongsma@××××××.com> |
60 |
-Reviewed-by: Ján Tomko <jtomko@××××××.com> |
61 |
-Signed-off-by: Ján Tomko <jtomko@××××××.com> |
62 |
-Signed-off-by: Michal Privoznik <mprivozn@××××××.com> |
63 |
---- |
64 |
- src/conf/node_device_conf.c | 2 +- |
65 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
66 |
- |
67 |
-diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c |
68 |
-index 4e2837c1cd..cac4243b50 100644 |
69 |
---- a/src/conf/node_device_conf.c |
70 |
-+++ b/src/conf/node_device_conf.c |
71 |
-@@ -2673,7 +2673,7 @@ virNodeDeviceGetMdevTypesCaps(const char *sysfspath, |
72 |
- |
73 |
- /* this could be a refresh, so clear out the old data */ |
74 |
- for (i = 0; i < *nmdev_types; i++) |
75 |
-- virMediatedDeviceTypeFree(*mdev_types[i]); |
76 |
-+ virMediatedDeviceTypeFree((*mdev_types)[i]); |
77 |
- VIR_FREE(*mdev_types); |
78 |
- *nmdev_types = 0; |
79 |
- |
80 |
--- |
81 |
-2.26.2 |
82 |
- |