Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 3 Feb 2021 22:28:16 -0500
From: Carlos O'Donell <>
To:, Dominic Chen <>,
 Rich Felker <>,
Subject: Re: Incorrect thread TID caching

On 2/3/21 3:21 PM, Dominic Chen wrote:
> The code in question is a unittest for the sandbox, which manually
> calls clone with CLONE_NEWPID to fork a child in a PID namespace,
> then installs a signal handler and checks that it receives SIGTERM
> correctly:
> . But under musl, raise() uses the cached TID value, so the test
> eventually times out.
> I missed that the NamespaceSandbox::ForkInNewPidNamespace() function
> does manually update the cached TID for glibc after calling the
> ForkWithFlags wrapper, so I can just do the same for musl too.

As Rich said for musl, this is not ABI for glibc either.

I'm not sure why you need to reset the TID cache. In glibc we have
containerized tests and we do not need to change internals of the 
(see glibc/support/test-container.c).


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.