From nobody Wed Jul 01 09:18:36 2026 X-Original-To: threads@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 4gqvZh6Qs2z6jtsX for ; Wed, 01 Jul 2026 09:18:36 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gqvZh5gXFz3Yd7 for ; Wed, 01 Jul 2026 09:18:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782897516; 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=lcEZPGvYxUBqhY2nicJFW86ECaSPlqdES/K/Lb1pEPQ=; b=k3zKaTA2AjK5oAaoeSHGPq784jaIEH0gCP5wyfVnBjtEk83hE/kVM1MX9hnpyGZ+917XY2 IbYhCV808kGCjm1UWwjiqdqVecSAmrSzhXHRDqdCs3q9yrMxJZjiYxZLJo5WeeQRIAt5Wj oLa3Gm2HdOl0Q/8mwZA17JaRje7pBimVjdacEK75kNeTK4AZ0qJVPhuNAZv/7SdutfDH/U jkUDOzZv8K1K0HKajwyUKvEIrMMBhnvqvTO0Mh8Vepc+MNNmRwviNAPxV1hWgYCX5MWCTx grJ1V9UWRJAuyxcdvUW+VKtNm6d7mLoAKlmCfzFUf05j11yQlc16ivzO5ULENA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782897516; a=rsa-sha256; cv=none; b=IP4trzWbUCHCP1E62un5Sa6QfeqCcGu7fF5/Dwrhy4Ho2Z6kl+kI7qM0LQEUDG1FPJ1E5V mzQWR9Ih7ZUiBJPrtfvjzXDzS3w49m9iTFgKA8px9gzdUwBMyEIO9apb2inbK1N/IYszRQ Ho1o2T3SuTSp02zgCs44sd3mNY69gclp+6GV127TT1Y3DrIiEHDmw3QAOOx0GOxk3z4g4/ Mc/saYWA9WqUeUaVVmL3JsBHrEBx9z3AmGqaNT7DhACgqJqw2tpPcBxj5GQ1nPLpajNTLj p5WP9iqnQZAC2IUpTEpoRgWGn9emncSx61nGP14qFTmFRqw8vS8IWfCyC16SJQ== 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=1782897516; 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=lcEZPGvYxUBqhY2nicJFW86ECaSPlqdES/K/Lb1pEPQ=; b=YKcMdWNM/kl8stLL68yhznA35eV7y9M579/1mukWJnfiMQDHcBY3WJq5zuEZ3dXqbcvfcM 6/aHxP7cfJZI9CDsLEDbh0467NNybE88dpFnsVnNC6gKPpQL4tJikIK79CWF/9ZBMkQNCt LXmQMejqfTxdLBX22Pv5UZLyxkYorOeOmUlBd2GEtUOaK3EjMlQmz6W4/ume5FH5E2DyWD ffXrscvUQwKRM2Rs8ow89hmLOPBsLHeBVo63Yj208zTm9pSut2sFYSj+1f01rzdeiyPCGW D4Cno8ld5Lak2ZQKryTB/7zPnlyhVwQb6A6QdoxSm59YcWSXfqouXw2lMDS2Pw== 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 4gqvZh49fyz1MJQ for ; Wed, 01 Jul 2026 09:18:36 +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 6619Iah8035515 for ; Wed, 1 Jul 2026 09:18:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6619IaXn035514 for threads@FreeBSD.org; Wed, 1 Jul 2026 09:18:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 296410] sprintf/vfprintf not thread safe on AArch64 due to localeconv_l using atomic_store_int, with relaxed semantics Date: Wed, 01 Jul 2026 09:18:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 14.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tomas@vondra.me X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296410 --- Comment #2 from Tomas Vondra --- (In reply to Konstantin Belousov from comment #1) I'm not very familiar with how the locales work, but the way I understood localeconv_l is that it rebuilds the cached fields after a change (or on fi= rst access). And I thought maybe it's harmless if two threads rebuilt it concurrently, or something like that. But maybe you're right and after a locale change a thread could see a mix of old and new values for a given locale? I guess that'd mean using atomics for protecting other fields (as implemented here) is not quite sufficient. --=20 You are receiving this mail because: You are the assignee for the bug.=