From nobody Fri May 02 18:08:34 2025 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 4ZpzSM1zmKz5tq5T for ; Fri, 02 May 2025 18:08:35 +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 4ZpzSL4Rdwz3rKY for ; Fri, 02 May 2025 18:08:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746209314; 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=dvG3EUoOEZSbeHt1Is+hfu4xpTo9VCx73FbAdjb7LKk=; b=Nf8xdP3TOrWXrS2qdQM34oyB77RsNkKUGTe0GCjAWvqrGX4YLHujHr6PfIUcXarafprhcK 5S+OgAQpI+v0h6PQB8+docIhSEcMKyEitp25rrzryHLvmJxe5K8V+F4uWUiEAqb/hV5iUO O7Xb8yJYV0Y6CVbSZ3Ny3zigwGlQ+u94Bm4tkBKFcwoRcZe3/4px2wgAIYIWXRl62tbMeh MtYOoOR7IuUmAcW/ADwyl86DZg+SVLl4kqL315OLEnJ5GVuuTsPOP8dBVjYKi5PERPhCnh gYztTNxkIVKOXOZRZLN4nRCSIRnukPw7oGKgqPr6bBKDcXNDGILsx/81hm+5cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746209314; 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=dvG3EUoOEZSbeHt1Is+hfu4xpTo9VCx73FbAdjb7LKk=; b=CKY3eWaQhm1atGcc3ebUYZaomaYDjMaV7gyL2RaNB81iACTB8CstOxsrwWwZYqg51poURQ retvenjFTIumwmN2BK5gipHq3MLY8KzQSnscO8PRts0faasSGcb9Y/K41Q0IvetlJK/7m0 8yO41TxE1sS3JC7hWIhg92fTeXZaOMRa/UwcvIlI9EX33zlYvv/j3eDWv5XrYZsBigJrsS 0ZEbCFD90YqyC0WnXQo97Tm2Mw+rVVAOxnhHVdFLK/kFUMgEK9PNmw34suSYUYjWiC9wJZ 6TL8yXpZCrgfL6iRxEEBPxJioMaAWLkMIGCNbuF6hghF5iI6umVEHMdc/d3YDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746209314; a=rsa-sha256; cv=none; b=Wzh5Vqaxydcoj1f7rXnWb/+3yDhXMm0JY152ZQWNgQiKRhlH1pOm0BHHRys9ZaM8v+1k0E EJdUOO9nXmpbmCgdVXKU79dVX2baKW25pnI9jvhbaYjaBbEon30nm8fe7D7OEL/5x5SiLQ I+iAIoFZu+UXfO3Cq4b0z9IreolAKSZ+RDJEOpngIwmI4gtGsQLC0LyLX05M9vxv9bI413 1JoiVtFpCdOvIy1T05mvHGtDl0KrtKLjTsIONy1nsO864W4Q2uhyMeTs2hJNZzeXe6RIwe J7FqOfin42D4Mf/K2xWB5r1dUR2p8Z8uwlg/OKMn9VdK82sgCoDd2wtaYxdCag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ZpzSL3chpz1MYb for ; Fri, 02 May 2025 18:08:34 +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 542I8YsI042071 for ; Fri, 2 May 2025 18:08:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 542I8Y5d042070 for threads@FreeBSD.org; Fri, 2 May 2025 18:08:34 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 286502] RTLD deadlocks during IFUNC resolution Date: Fri, 02 May 2025 18:08:34 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many 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-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 MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286502 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc66c0a8479e62f3e3e085252839cddace= 4d4bbf5 commit c66c0a8479e62f3e3e085252839cddace4d4bbf5 Author: Konstantin Belousov AuthorDate: 2025-05-01 15:44:12 +0000 Commit: Konstantin Belousov CommitDate: 2025-05-02 18:08:09 +0000 rtld: do not call into ifunc resolvers with the bind lock write-locked If filter needs to be loader, we restart after the lock upgrade. But possible binds in the resolver itself would try to recurse on the lock, which can be only done for the read locks. PR: 286502 Sponsored by: The FreeBSD Foundation MFC after: 1 week libexec/rtld-elf/rtld.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=