From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C7623858408; Thu, 15 Jun 2023 09:48:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C7623858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686822496; bh=WpWEQJ1r8otNmB6obB6zYGlodPnBx8ckIjsfD6UGhYc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T/rWaqITqg0DcFgl2+BBfhDCBONaacNVtRuy9v+ap5EfZdOSO+uKfcPpRUQuKfc7X qZJFibHO3VUaHBRZD0grgH2D360DADmiIDE/p8zQXwsCZG6Fo40Dcg91z7tYZOwvNr gCfFrjmjmQpg5dzVZ/00/Kds0SCBYZsMO1Z4POvU= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/1890] strerror() unnecessarily non thread-safe Date: Thu, 15 Jun 2023 09:48:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.3.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.32 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: target_milestone resolution bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D1890 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.32 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Assignee|fweimer at redhat dot com |unassigned at sourc= eware dot org --- Comment #8 from Florian Weimer --- Fixed for 2.32 via: commit 28aff047818eb1726394296d27b9c7885340bead Author: Adhemerval Zanella Date: Thu May 14 17:44:15 2020 -0300 string: Implement strerror in terms of strerror_l If the thread is terminated then __libc_thread_freeres will free the storage via __glibc_tls_internal_free. It is only within the calling thread that this matters. It makes strerror MT-safe. Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu, and s390x-linux-gnu. Tested-by: Carlos O'Donell Reviewed-by: Carlos O'Donell --=20 You are receiving this mail because: You are on the CC list for the bug.=