From nobody Wed Aug 9 05:29:08 2023 X-Original-To: bugs@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 4RLJWn2n8Kz4mC9Y for ; Wed, 9 Aug 2023 05:29:09 +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 4RLJWn1SZ9z4DYC for ; Wed, 9 Aug 2023 05:29:09 +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=1691558949; 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=W8YEL6gswgINXYQK73zy46C+GNelhJJ82FftSGw1oro=; b=yQ3fgmTeIYlSK+gbVHfdtQiC2VTHgmCD/g2OnnsNxWIncouLtfeV7UiBk+/sGgphzHQnQU 8wNQ5eSTgTIggNLUbVGQw7wzDp7CaUqRwKvtb2CArWyRieFKmaDFINVXar7qD8VfaIy/5D 8yij5fHnnxL5uBnTLvVsafM5vSDWCfwSTqxyVHadUKRytZb9hrbPAof4BrsKeYH5G//WZi rOv8/xTs9USy69WzImmmQ/x4waTY4U2I5JqoCHq63IgIe5uyQr/jKe2U+A8QotIX4sxzS6 vjgTKJ4qALE+DS6xQwApcOL/SKNX0WBbhsIQm23BZcNd6fC0vAUNNvkHz7w49g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691558949; a=rsa-sha256; cv=none; b=BabDIOzvDhnFNudt/ajkN+rA/PTyD5qQ7GLLqxT1SM2er7Cf4gde9leB4R9zhDd/GetBSV eTf8MQzjU/H7cuSazHRv46WkQh3hBauo0ZLSBaoOYFZ6T7lPa0WgFCViR1nGrXS42gL861 nrBSWSJxm9PuiHMV2xZhlsW9lnr0SrxsH2bKCYcO7CKh1jw918YOBjc2+NnDw9Hvgndtaq yTpzj8nxlnEUeFLaSiA8TsQWriYCO7yZi4e5rrmZAQLASIkwI43Fwx12PGEX1IMKTab4/D T9rS6oQ7E+ptMg4VVp0M7JxpUSPncIhkPfqs3f3FQo+OlZ0ygpB2NhAPblDWTg== 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 4RLJWn0Sknz13QS for ; Wed, 9 Aug 2023 05:29:09 +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 3795T9Wp024466 for ; Wed, 9 Aug 2023 05:29:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3795T9PX024464 for bugs@FreeBSD.org; Wed, 9 Aug 2023 05:29:09 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: bugs@FreeBSD.org Subject: [Bug 272992] Calling dl_iterate_phdr via dlopen/dlsym causes failure: ld-elf.so.1: Can't find module with TLS index 1 Date: Wed, 09 Aug 2023 05:29:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272992 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D21a52f99440c9bec7679f3b0c5c9d8889= 01c3694 commit 21a52f99440c9bec7679f3b0c5c9d888901c3694 Author: Konstantin Belousov AuthorDate: 2023-08-09 05:07:05 +0000 Commit: Konstantin Belousov CommitDate: 2023-08-09 05:07:05 +0000 libc dlfcn.c: make dl_iterate_phdr() from libc more useful Apparently there are applications that resolve dl_iterate_phdr from libc and try to call the symbol. Our libc only provides stubs for dl* to satisfy static linker or statically linked binaries, and is not prepared to this situation. Add a code to dso libc to find real dl_iterate_phdr and redirect the call to it. Reported by: yuri PR: 272992 Sponsored by: The FreeBSD Foundation MFC after: 1 week lib/libc/gen/dlfcn.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=