X-Git-Url: https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blobdiff_plain;f=debian%2Fpatches%2Fextra%2FCVE-2016-9106-9pfs-fix-memory-leak-in-v9fs_write.patch;fp=debian%2Fpatches%2Fextra%2FCVE-2016-9106-9pfs-fix-memory-leak-in-v9fs_write.patch;h=0000000000000000000000000000000000000000;hp=3ee8b50818383c7d37622803fe931a789f38d3a5;hb=1a91ab45b7b886b5a4d2b12a559e4b239eccceed;hpb=e9748910af967b15cce8c312fc50589065fca911 diff --git a/debian/patches/extra/CVE-2016-9106-9pfs-fix-memory-leak-in-v9fs_write.patch b/debian/patches/extra/CVE-2016-9106-9pfs-fix-memory-leak-in-v9fs_write.patch deleted file mode 100644 index 3ee8b50..0000000 --- a/debian/patches/extra/CVE-2016-9106-9pfs-fix-memory-leak-in-v9fs_write.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 2c5bcb2d5f32ffcf5064d3557e44836fa70700be Mon Sep 17 00:00:00 2001 -From: Li Qiang -Date: Mon, 17 Oct 2016 14:13:58 +0200 -Subject: [PATCH 7/8] 9pfs: fix memory leak in v9fs_write - -If an error occurs when marshalling the transfer length to the guest, the -v9fs_write() function doesn't free an IO vector, thus leading to a memory -leak. This patch fixes the issue. - -Signed-off-by: Li Qiang -Reviewed-by: Greg Kurz -[groug, rephrased the changelog] -Signed-off-by: Greg Kurz ---- - hw/9pfs/9p.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c -index aa2b8c0..af07846 100644 ---- a/hw/9pfs/9p.c -+++ b/hw/9pfs/9p.c -@@ -2080,7 +2080,7 @@ static void v9fs_write(void *opaque) - offset = 7; - err = pdu_marshal(pdu, offset, "d", total); - if (err < 0) { -- goto out; -+ goto out_qiov; - } - err += offset; - trace_v9fs_write_return(pdu->tag, pdu->id, total, err); --- -2.1.4 -