From nobody Mon Jul 29 23:59:57 2024 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 4WXwMd6nybz5SFSn for ; Mon, 29 Jul 2024 23:59:57 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WXwMd5k7kz4GFr for ; Mon, 29 Jul 2024 23:59:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722297597; a=rsa-sha256; cv=none; b=IksfJGQL9b0VGeKtQYQA+7SZExQrIK/umJBCQmmQEfTRu5QaeZueT4PGWL8kM4d7k4KaEk w12DORrBiRCdAprezAXGg6aZUAClXVOE3IKpJbKoAvDaWRr6CM9ymIyQiKG81Cce50GBHA xBpAWTUgyfAnw+ogJl43buzVtvUX1NpSlx9sDHvKDiLnaCznKtWtlgS0cyDILMslZowWoS oWy4QCzpO1ynHbUUrd5NKLQXbIKmFs4c/4JhMoNSsQafRsfHmr5AhyMQSLIeCMB8vuS9DE O/iLsslJYVFs09tDCkiW5iRi6hHnyy7dD0l5SvWl9CGIT6Au8g2l7qg4n3UJvw== 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=1722297597; 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=qDZi3aCAaiLqht1FJnicaHSAM00m7CbTh6/JUPmMZA8=; b=cV2u4U8qk1XmuWYrlEKslzbIhq9OW9GHTqMmCyQDF19jJG+JvzKa1uHUvyRF1OrUOUH8kT Bw5eWd7LytpWGAwtz6vQ6Xcdd9E309A9odhtFk4KE5BKoRiKxGoX+N5zKYCOmwPAnKrem7 6m0XafpAXxf8ZKrsJ1FWAWODA1svnSiCafGf4ultmq52ke6Lq6v09h7pvuoAA/Nx4YJhO5 t6QiapqwqqwKWg8MxAjdfL1bDoSfwHsA4i/o2GhpmkRLfJfSwj9y5NPDxwsDzVI+X87/6D GM1eKAu2UqxhaU7smc+kskeXM7DFE4VumtkGUqzR5QPZ3a9LHFNDsR2m2dRvQA== 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 4WXwMd5K8QzvjV for ; Mon, 29 Jul 2024 23:59:57 +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 46TNxvkM005521 for ; Mon, 29 Jul 2024 23:59:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46TNxvX3005514 for threads@FreeBSD.org; Mon, 29 Jul 2024 23:59:57 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 280318] fork() can deadlock on rtld_phdr_lock Date: Mon, 29 Jul 2024 23:59:57 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280318 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D860c4d94ac46cee35a678cf3c9cdbd437= dfed75e commit 860c4d94ac46cee35a678cf3c9cdbd437dfed75e Author: Konstantin Belousov AuthorDate: 2024-07-17 04:05:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-29 23:57:33 +0000 rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var which makes threaded fork ignore the phdr rtld lock, in particular allowing the dl_iterate_phdr() to block in callback. The cost is that the image started in this mode cannot use dl_iterate_phdr() after fork. PR: 280318 Sponsored by: The FreeBSD Foundation MFC after: 1 week libexec/rtld-elf/rtld.1 | 10 +++++++++- libexec/rtld-elf/rtld.c | 1 + libexec/rtld-elf/rtld.h | 1 + libexec/rtld-elf/rtld_lock.c | 7 +++++-- 4 files changed, 16 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=