From nobody Tue Apr 23 19:45:27 2024 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VPCJl63zZz5HxLH for ; Tue, 23 Apr 2024 19:45:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VPCJl4zQCz4jZf for ; Tue, 23 Apr 2024 19:45:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713901527; a=rsa-sha256; cv=none; b=lVN8F3IUAexD3MFrbtw4jCk5dd0z8cvQbZ9qF6aO+APDuEc5LIVUDkuIFW3tDcJI7UlSz0 5hAWZWFbR25+ALJ2o3gxTr3+jhJ69QOeYaoQoTPl6ppBYWz+Z3nDA3geG94cxvWdItZMj+ 4OuwG95o52/KU4IE30KDkXwkp/MsOxYsNc2gx69u0xdLGTRJDEc+3DXD5mswtZ8uncel+3 xxPy0iveVH2IySQzC+lrKuOh3PxxyNzz1qRn0FcM6OJ9bn+hZUvThb8J0rDYUKLeQV+RdI mU+EUXQqkhn88wF0KMCW59Tvw4CmOIGBh6vYnjK1+dL1lMsVAGtVdsCdoSp90w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713901527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E76ll6GZ6/lUTqPnWxOcDy2iWeSjYipklu3wqq0Vfuk=; b=HcHUiqfMHGvLjYaskI6a3G+4xtocatYKQ1cmn8xLgfsO27w+OVwAII9KT4cFzjANcUujep Y8qO0i78M8JSs6Q5H5Q1BW7Mg7pABa5UOTN1nMp3D0FmHFnfFPJo3RKARaOtuYleVshgS+ HCx9w/S8QgOFJaFWE1peG3w6bHidPiDWZCxJzQeevUfJqIh/hq+2BvtoeEn3TFs4zW6rFj 77/7pEy23oPNMicvuYoXGSezgIyFlfi+IMIjqc4xVlMTgK1dKQideh4loaXfYEhgUxXPUZ 2uuiglpTbP76yo61NXqOPn7JFk3eMF7GfNL5jK6KIn4S7k7ZH4BU/57+r/rGUA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VPCJl4W9szlMm for ; Tue, 23 Apr 2024 19:45:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43NJjRRb053812 for ; Tue, 23 Apr 2024 19:45:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43NJjR8Y053810 for standards@FreeBSD.org; Tue, 23 Apr 2024 19:45:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 278556] strerror-related race condition and standards violation in printf and friends Date: Tue, 23 Apr 2024 19:45:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278556 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df887667694632c829b0599b54ff86a072= e93df87 commit f887667694632c829b0599b54ff86a072e93df87 Author: Konstantin Belousov AuthorDate: 2024-04-23 17:10:30 +0000 Commit: Konstantin Belousov CommitDate: 2024-04-23 19:43:01 +0000 __vprintf(): switch from strerror() to strerror_rl() This eliminates the use of non-thread-safe function in printf*() family, and make the call locale-aware. Also, it stops obliterating the strerror() static buffer, which aligns with the POSIX requirement that implementations must behave as if no standard-mandated functions call strerror(). PR: 278556 Reported by: Jonathan Gruber Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916 lib/libc/stdio/vfprintf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=