This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/24531] Malloc tunables give tcache assertion failures
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 22 May 2019 14:39:31 +0000
- Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
- Auto-submitted: auto-generated
- References: <bug-24531-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24531
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.27/master branch has been updated by Wilco Dijkstra
<wilco@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=54ba8bcd42355ad0c0ca763b6bba40a2b2829f38
commit 54ba8bcd42355ad0c0ca763b6bba40a2b2829f38
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date: Fri May 10 16:38:21 2019 +0100
Fix tcache count maximum (BZ #24531)
The tcache counts[] array is a char, which has a very small range and thus
may overflow. When setting tcache_count tunable, there is no overflow
check.
However the tunable must not be larger than the maximum value of the tcache
counts[] array, otherwise it can overflow when filling the tcache.
[BZ #24531]
* malloc/malloc.c (MAX_TCACHE_COUNT): New define.
(do_set_tcache_count): Only update if count is small enough.
* manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
(cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)
--
You are receiving this mail because:
You are on the CC list for the bug.