From nobody Mon May 22 13:47:15 2023 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 4QPzK05tjZz4BTR3 for ; Mon, 22 May 2023 13:47:16 +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 4QPzK04w7tz4clY for ; Mon, 22 May 2023 13:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684763236; 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=UndDCyov39lDTUx7nlSq25/UKd5KrKa5b2I9nK2P8rE=; b=atZxCyDK8Ixzm4q9H3dlIlsF3qRXW9ZFXdFLSW4pNe8YS5LoZxSGA4udsP9tRSNVHNfTvy OEuoaXhV3VrYP6wFLjJy0jt8zNOgAu6YQwS0Gds7xW/2LVaiI3feFyvIFcVSw1tWl3Yo1C 21guWHtRlBPbE9S37HzZosL3DxLfmPhuObPc8541q99SV87TRfPMQTK3Or6GWqN+lkhenN MDVacJ8Ts+eP+isSYx9Ok32w5rKHSx+/yneSa8PrAzkbGcpMIF1zyHjENhUvyHFAzXii2q aoMazPBHpfeHgpZYngqmQhTM2tG+eD4aEYAdM+Z0NosNCSh51M/4XhrplI4SaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684763236; a=rsa-sha256; cv=none; b=A/0mLFIlymbg0KNPQOxSjLRTmM+W89m4bB82DRjAh9MeIGv38qAGLtftxUzH9vHCTUyNnE Zb/0Th7ow6L2iOnArZOqVtzUuz14YBkCLEvW7mvAX9TyY8fqLR9NRz4RVpNN1RisyrUNbO shd9p7mig+8cA4IWWFHhgOC7kFC5z/R8d7Ci/wxpa/bCf9UYlQeMv/4pAuUhDwlzGjM7HR KhSv9VZQe/xAr5SgpWmbwOisTgg2is1wVaOPvwXx+i27RQzik/0KUwM5UBSY660g8FY6sF pqDSJ+VOmJP1/V3vM7SYLZAkh+mqnH4az+jU11Snl0AMsIW8heDPsPPMq0kXvg== 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 4QPzK03zlGzKWY for ; Mon, 22 May 2023 13:47:16 +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 34MDlG6H097094 for ; Mon, 22 May 2023 13:47:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34MDlG3o097093 for threads@FreeBSD.org; Mon, 22 May 2023 13:47:16 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: threads@FreeBSD.org Subject: [Bug 271490] Deadlock between _rtld_atfork_pre and _thr_attr_init Date: Mon, 22 May 2023 13:47:15 +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: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org 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-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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271490 --- Comment #16 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6f49eafb056cfa0703dfc97a731cabe4e= d2596b8 commit 6f49eafb056cfa0703dfc97a731cabe4ed2596b8 Author: Konstantin Belousov AuthorDate: 2023-05-20 08:11:54 +0000 Commit: Konstantin Belousov CommitDate: 2023-05-22 13:46:42 +0000 libthr rtld locks: do not leak URWLOCK_READ_WAITERS into child Since there is only the current thread in the child, no pending readers exist. Clear the bit, since it confuses future attempts to acquire write ownership of the rtld locks, due to URWLOCK_PREFER_READERS flag. To be future-proof, clear all state about pending writers and readers. PR: 271490 Reported and tested by: KJ Tsanaktsidis Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40178 lib/libthr/thread/thr_fork.c | 4 ++++ lib/libthr/thread/thr_private.h | 2 ++ lib/libthr/thread/thr_rtld.c | 11 +++++++++++ 3 files changed, 17 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=