]> git.ipfire.org Git - pakfire.git/commit
cgroup: Do not use TLS for buffer that is longer than one page
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Oct 2023 10:31:59 +0000 (10:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Oct 2023 10:31:59 +0000 (10:31 +0000)
commitb4d087f3353a174be936da4cc959dc169491162a
tree82d22b4bb7c883a9635b32302e9c4cb3ed772528
parent42034590aa4b73d768fcdf5b90e959d5a02f4ecc
cgroup: Do not use TLS for buffer that is longer than one page

There seems to be a compiler bug that causes memory corruption in any
spawned threads. This used to materialize mostly in downloading files
when cURL spawned a thread to call the glibc resolver.

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/cgroup.c