From nobody Fri Feb 04 20:59:48 2022 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 EEA71198B2F8 for ; Fri, 4 Feb 2022 20:59:48 +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 4Jr7Fw5Nz4z4vqv for ; Fri, 4 Feb 2022 20:59:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 914B612C93 for ; Fri, 4 Feb 2022 20:59:48 +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 214Kxmau098168 for ; Fri, 4 Feb 2022 20:59:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 214KxmTN098167 for threads@FreeBSD.org; Fri, 4 Feb 2022 20:59:48 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 261713] ThreadSanitizer detects race in __catopen_l (via strerror_r) Date: Fri, 04 Feb 2022 20:59:48 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644008388; 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=Vy34F5TnaCApaBgE9rNc971CAQAOhKbG4BJf/5Y83Z0=; b=T8udtjseB7V2SSzFRcSHdA5I7BOdnHDNOsX+unDBch2EqhWFgaRm995AkJRUvV9INA5ZAj GLpT+3MLWpiqqbbS9J4H7ZGApDoyAsnPBV8pV0suXjQ5D7PxK8KlOGkXLrHKf3v+iZGx1e tawEYUTf9jOXVezZSEk5KbJXBqD0lAsggX8wTFy7rD5uVNHvCoAmSnN4wA0E/ZBgXZPkTt XNdZx00fSzLBhtjussDY++hwwvq11KeJBiKzSQghcISOQnqD5Fmd/k1Ptffmq9SURzzrMO 1Mx1siNOu8/vKMhfmMOQxxG9pzxGvgYV9GDctRIKSzeIvJoNIDvmzo8Qui0dqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644008388; a=rsa-sha256; cv=none; b=IQomcpsg7ikRlbDbX9shglrugo5QY+sVQZva54C34kMYJBuCgtVKNbZc/9R6nLGR/VVofd YxvP1JjTJ/Ep34AaM+N80IHqqYjEO61UuGelnQ1rehcm4gEp39Xpx8bUVi0IzLCrAcZfHZ jniMnROhMRd1luJ1hSk0+Ia65s85XDl4JSS4n3R3FWecAR7XZ2f+gb7uQEsWi8P3SzhoBu IZE+dTtm7bfHlZqusK3DAAVJXpE+Ft4Jremu+PlrYlcN78i0aTb1OTOHjBVpFXHch+dD/2 dx+pMyW2cEJFW3oGbYgu9MvDlayymA+Kp+j+z8q8/kxtVrFr8wzsbqz4KMEBnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261713 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #2 from Dimitry Andric --- This is a false positive in ThreadSanitizer: it does not intercept the _pthread_rwlock_* functions in libc, so it does not realize __catopen_l() is locking the cache SLIST when reading and writing it, and then produces a bo= gus thread race warning. Submitted a review upstream: https://reviews.llvm.org/D119034 --=20 You are receiving this mail because: You are the assignee for the bug.=