diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2017-09-21 08:34:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-22 17:15:30 +0100 |
commit | bbe55428976d1f486bf232f654cc055b87e369e0 (patch) | |
tree | 65a80de146c07ac11840eaa1118818d6c8f15c41 /meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch | |
parent | 08752aa58f69fdc09c8c3defe58be2f174ebf28e (diff) | |
download | poky-bbe55428976d1f486bf232f654cc055b87e369e0.tar.gz |
qemu: remove unused patches
Remove the following patches since they are unused after qemu update to
2.10:
0001-replace-struct-ucontext-with-ucontext_t-type.patch
CVE-2016-9908.patch
CVE-2016-9912.patch
configure-fix-Darwin-target-detection.patch
(From OE-Core rev: d303f61e28b0ecc2352739a07680bfdeb3544080)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch b/meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch deleted file mode 100644 index c009ffd96a..0000000000 --- a/meta/recipes-devtools/qemu/qemu/CVE-2016-9912.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From b8e23926c568f2e963af39028b71c472e3023793 Mon Sep 17 00:00:00 2001 | ||
2 | From: Li Qiang <liq3ea@gmail.com> | ||
3 | Date: Mon, 28 Nov 2016 21:29:25 -0500 | ||
4 | Subject: [PATCH] virtio-gpu: call cleanup mapping function in resource destroy | ||
5 | |||
6 | If the guest destroy the resource before detach banking, the 'iov' | ||
7 | and 'addrs' field in resource is not freed thus leading memory | ||
8 | leak issue. This patch avoid this. | ||
9 | |||
10 | CVE: CVE-2016-9912 | ||
11 | Upstream-Status: Backport | ||
12 | |||
13 | Signed-off-by: Li Qiang <liq3ea@gmail.com> | ||
14 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
15 | Message-id: 1480386565-10077-1-git-send-email-liq3ea@gmail.com | ||
16 | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | ||
17 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
18 | --- | ||
19 | hw/display/virtio-gpu.c | 3 +++ | ||
20 | 1 file changed, 3 insertions(+) | ||
21 | |||
22 | diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c | ||
23 | index ed2b6d3..6a26258 100644 | ||
24 | --- a/hw/display/virtio-gpu.c | ||
25 | +++ b/hw/display/virtio-gpu.c | ||
26 | @@ -28,6 +28,8 @@ | ||
27 | static struct virtio_gpu_simple_resource* | ||
28 | virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id); | ||
29 | |||
30 | +static void virtio_gpu_cleanup_mapping(struct virtio_gpu_simple_resource *res); | ||
31 | + | ||
32 | #ifdef CONFIG_VIRGL | ||
33 | #include <virglrenderer.h> | ||
34 | #define VIRGL(_g, _virgl, _simple, ...) \ | ||
35 | @@ -364,6 +366,7 @@ static void virtio_gpu_resource_destroy(VirtIOGPU *g, | ||
36 | struct virtio_gpu_simple_resource *res) | ||
37 | { | ||
38 | pixman_image_unref(res->image); | ||
39 | + virtio_gpu_cleanup_mapping(res); | ||
40 | QTAILQ_REMOVE(&g->reslist, res, next); | ||
41 | g->hostmem -= res->hostmem; | ||
42 | g_free(res); | ||
43 | -- | ||
44 | 1.9.1 | ||
45 | |||