Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
qemu-testsuite.19028
0075-9pfs-fix-memory-leak-in-v9fs_link.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0075-9pfs-fix-memory-leak-in-v9fs_link.patch of Package qemu-testsuite.19028
From: Li Qiang <liqiang6-s@360.cn> Date: Mon, 17 Oct 2016 14:13:58 +0200 Subject: 9pfs: fix memory leak in v9fs_link The v9fs_link() function keeps a reference on the source fid object. This causes a memory leak since the reference never goes down to 0. This patch fixes the issue. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Reviewed-by: Greg Kurz <groug@kaod.org> [groug, rephrased the changelog] Signed-off-by: Greg Kurz <groug@kaod.org> (cherry picked from commit 4c1586787ff43c9acd18a56c12d720e3e6be9f7c) [BR: CVE-2016-9105 BSC#1007494] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/9pfs/9p.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index dcbb0f125536442e719b9bc61cbe..2083ab0328701fbe63baad12dc3c 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -2392,6 +2392,7 @@ static void v9fs_link(void *opaque) if (!err) { err = offset; } + put_fid(pdu, oldfidp); out: put_fid(pdu, dfidp); out_nofid:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor