From nobody Tue Apr 23 17:05:14 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 4VP7lt70DFz5HdSH for ; Tue, 23 Apr 2024 17:05:14 +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 4VP7lt5w84z4G49 for ; Tue, 23 Apr 2024 17:05:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713891914; a=rsa-sha256; cv=none; b=Kt08EgTDkc8O8umIHzFNTLMI/NHJesnG6Ty5xBXKm4y9n9XKxv0xvQ2K29FWfpZ5dchCoS 7r78BQcoDYKhQmxwqxt7lVZy3t5oCCdJa0pyRbBTne2nXiOGW66Jfhm1GqfJE6aSCcwx7u X29LGDtGomdCQoceiEmZ04xQn/rwGqpW1qqEQiTgSLZsdh5X6GY8/4Bn/SkQX3Qq8xXtz9 oNZmeFBkZflu99M0FqTYCe7rg+3H9A2S/O1ftauLuJVd9G1epdGpVz/tRGyd2MEVa8D7SJ rC3znX73L4g+e72d2eU6aKePUrCBwSdI3XpSS+G9wRLw4yYshXn3qw/+2lRtAA== 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=1713891914; 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=aEJHqG+8VX9ziyAXDuuiIiCRy+G+S6Aks5glUVXsnt0=; b=kBzioW31F7o9Q7S0Lb95W+P27ggKgizSYRWWVfEByGW9pFbkxpShcG/rzC3d9j7HpPpfqB FmU6nw76B0NeLbWtSoNwHZCHCTFuK7m3kQ1+CRXjahTwBOEIXCB8g9bNzN4TwT4j9Ol/uy rE5RRecN/UjPbOOuj9KZBdhcxWQzS4nSSqcNeXqH94R2wHwjQe6zIiaJdgmQ3p0KqTENAU vjt1SyRvZ4BBr63YnrOmKvBsijbCQE0iAdsM7RDE2ldV9fmRC/FLkWYDgk07GtGKZk9M89 SumixJxDg1jED6b4bkUCnlM2P8lla3jAUgkMtfdaNuuAf6iGqb6zj9Fku1A86A== 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 4VP7lt5LQRzgjl for ; Tue, 23 Apr 2024 17:05:14 +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 43NH5Eup064627 for ; Tue, 23 Apr 2024 17:05:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43NH5EXs064626 for standards@FreeBSD.org; Tue, 23 Apr 2024 17:05:14 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: standards@FreeBSD.org Subject: [Bug 278556] strerror-related race condition and standards violation in printf and friends Date: Tue, 23 Apr 2024 17:05:14 +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: imp@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 #2 from Warner Losh --- btw, my change is minimal. it could easily just #define BUF to be NL_TEXTMAX and work, though it might have more cache misses given the 2k span of the buffer... we could get rid of the MAX and always do NL_TEXTMAX and use eith= er sizeof or define BUF to be something like (sizeof(uintmax_t) / 3 + 2) which will always be enough and 2k can handle integers up to 6k bits, so we'd fut= ure proof the code. --=20 You are receiving this mail because: You are the assignee for the bug.=