From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14263 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: TLS and TSS APIs have race conditions in musl Date: Tue, 25 Jun 2019 20:11:52 -0400 Message-ID: <20190626001152.GL1506@brightrain.aerifal.cx> References: <2140186.O6clVpGfe8@omega> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77380"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14279-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jun 26 02:12:07 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hfvXj-000K3g-D6 for gllmg-musl@m.gmane.org; Wed, 26 Jun 2019 02:12:07 +0200 Original-Received: (qmail 14011 invoked by uid 550); 26 Jun 2019 00:12:05 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13993 invoked from network); 26 Jun 2019 00:12:04 -0000 Content-Disposition: inline In-Reply-To: <2140186.O6clVpGfe8@omega> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14263 Archived-At: On Wed, Jun 26, 2019 at 01:42:25AM +0200, Bruno Haible wrote: > Hi, > > The attached test programs exercise the thread-local storage (TLS) > API and the thread-specific storage (TSS) API in libc. > > On Alpine Linux 3.7 and 2.9, these test programs, when run, produce this output: Have you tried with current musl (1.1.22)? There were known race conditions in older versions and I'm pretty sure Alpine 3.7 is affected. Rich