]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Don't use __libc_free for tcache cleanup
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 3 Oct 2022 10:58:09 +0000 (11:58 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 22 Nov 2022 14:31:25 +0000 (14:31 +0000)
commit32c64139eef90920af88e85c07c168fcada73935
treedfd5db0319795c8db54b8687652137208b52634a
parente0bde778546db86042bdf4f4b8eca7f38d01a02e
malloc: Don't use __libc_free for tcache cleanup

__libc_free must only be used for memory given out by __libc_malloc
and similar public apis, but tcache stores a cache of already freed
pointers and itself is allocated using internal malloc apis.  Strong
double free detection in __libc_free breaks tcache_thread_shutdown,
so use a cut down version of free to reset tcache entries.
malloc/malloc.c