Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754735 - net-misc/curl-7.73.0 w/ dev-libs/libressl-3.2.2 leaks memory
Summary: net-misc/curl-7.73.0 w/ dev-libs/libressl-3.2.2 leaks memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://github.com/libressl-portable/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-15 14:38 UTC by Hanno Zysik (geki)
Modified: 2020-11-26 17:18 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Testcase for curl https queries that leak memory. (test_https_leak.c,3.24 KB, text/x-csrc)
2020-11-15 14:38 UTC, Hanno Zysik (geki)
Details
Valgrind report of leaks. (valgrind_https_leaks.txt,6.94 KB, text/plain)
2020-11-17 19:43 UTC, Hanno Zysik (geki)
Details
Memory leak fixes to upcoming release 3.3.0. (libressl-3.3.0-memleaks.patch,1.15 KB, patch)
2020-11-21 12:09 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2020-11-15 14:38:54 UTC
Created attachment 671539 [details]
Testcase for curl https queries that leak memory.

I made a testcase that eats memory with libressl-3.2.2 and not with libressl-3.2.1. Who knows if libressl leaks or curl handles ssl badly..?!

Discussion: https://forums.gentoo.org/viewtopic-p-8531092.html#8531092
Comment 1 Aaron Bauman (RETIRED) gentoo-dev 2020-11-15 15:08:32 UTC
(In reply to Hanno Zysik (geki) from comment #0)
> Created attachment 671539 [details]
> Testcase for curl https queries that leak memory.
> 
> I made a testcase that eats memory with libressl-3.2.2 and not with
> libressl-3.2.1. Who knows if libressl leaks or curl handles ssl badly..?!
> 
> Discussion: https://forums.gentoo.org/viewtopic-p-8531092.html#8531092

Hi, Hanno. Have you reported this upstream yet?
Comment 2 Hanno Zysik (geki) 2020-11-15 16:34:56 UTC
No, short on time, sadly. Just got around to test and verify on my machine. Should it be reported to libressl or curl or both?
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2020-11-15 16:43:46 UTC
(In reply to Hanno Zysik (geki) from comment #2)
> No, short on time, sadly. Just got around to test and verify on my machine.
> Should it be reported to libressl or curl or both?

Initial review it looks like a libressl issue. So, I would report it there.
Comment 4 Hanno Zysik (geki) 2020-11-15 18:31:43 UTC
Added libressl report to URL. I hope that was the correct libressl issue tracker.
Comment 5 Hanno Zysik (geki) 2020-11-17 19:43:28 UTC
Created attachment 672001 [details]
Valgrind report of leaks.
Comment 6 Hanno Zysik (geki) 2020-11-18 18:57:49 UTC
JFYI, if you do not follow uptream report.

Result: "We will land fixes shortly and new releases should follow soonish."
Comment 7 Hanno Zysik (geki) 2020-11-21 12:09:44 UTC
Created attachment 674119 [details, diff]
Memory leak fixes to upcoming release 3.3.0.

Based on the commit: https://github.com/libressl-portable/openbsd/commit/20481f01c9beea48fb93963aeb13c680b3133e68
Comment 9 Hanno Zysik (geki) 2020-11-25 20:26:39 UTC
Can be closed as soon as libressl-3.3.0 lands in repository.
Comment 10 Larry the Git Cow gentoo-dev 2020-11-26 17:18:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc952dfa39959c18b7729aa314a3f30967281b83

commit fc952dfa39959c18b7729aa314a3f30967281b83
Author:     Anthony G. Basile <blueness@gentoo.org>
AuthorDate: 2020-11-26 17:18:17 +0000
Commit:     Anthony G. Basile <blueness@gentoo.org>
CommitDate: 2020-11-26 17:18:17 +0000

    dev-libs/libressl: remove 3.2.2, bug #754735
    
    Closes: https://bugs.gentoo.org/754735
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Anthony G. Basile <blueness@gentoo.org>

 dev-libs/libressl/Manifest              |  1 -
 dev-libs/libressl/libressl-3.2.2.ebuild | 64 ---------------------------------
 2 files changed, 65 deletions(-)