From nobody Mon Apr 20 17:40:51 2026 X-Original-To: dev-commits-src-all@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 4fzt7X65HWz6ZFh5 for ; Mon, 20 Apr 2026 17:40:56 +0000 (UTC) (envelope-from git@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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fzt7X5QBhz3Zqk for ; Mon, 20 Apr 2026 17:40:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776706856; 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; bh=QZH+4OieHqK+2PNsJiBUHbKgzppPg/76hImTuDwxEUU=; b=fH6MOikMZpgKotr2M4zY55Q7pNnaORDX03OalzbH83xladojmsJYQnWr8zEuyyNsgHB71X IJmJVdMQJU0zbyw+0BFDG6POHV/aAiFBOUWhAhzE3eN3SFYlpeh9NQIwD4fLNDot4rU7mB 9aEy2yKrJN2viOpLxYntB2drJAP5sz2OipUuL1IGMwMOUbbsHbP+k7Kqfl7mIbwTvkHC+8 4eDDuN2ZzgUcYifr85UA6NsvWN3aonFK1ZIokyHG+G5xGAa6Rrx7RuFQL5l3oRog9QZM0W 6S6Qk9wajSBd7rSsdHAuTk8Djh+SiVZr8xdyFFOx7E/GddEHo6aN3BqSI5Zs0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776706856; a=rsa-sha256; cv=none; b=rLp2anAaWp27gUrkaFRSOYJHsKK4FaGwiFRHpWIqj2dsF3HislApp3tz2BYdHxh+H22lNN s2fvIFV4fdC1h0VRim90tshjVBwly3uQVNgq2CR34LlyXUZxmEzMAZu8u1YgG8hebLyH3L A4llJXt6dcZtrK7FmAfLKwn4WpwCWXCzCsQBa85OyJsg7ylDVUI/ugAFS9GIl5GMn0uE/B K60/f2DvYcgP0edr1KAn2gayJ3+Dd7vFb6X2HKSG17smcoVsppzB7LAy4sNzwy16ZSNLKT HKbBhVCxDY1p9SznFRAUMDT7dBDnV0VNeSIXrOmnlOdyatVNtsyIqcUTAwznqA== 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=1776706856; 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; bh=QZH+4OieHqK+2PNsJiBUHbKgzppPg/76hImTuDwxEUU=; b=VaDrnWS2nN2PgufmCQCdlLaPMeYuN/XU1RVwYfR/+F/LBN8dpjc+J0zx3Fwj4EETBOe/ou Ax1KxOb6ywv/Cog+MD65vlH3gn4m9WtlrWCp3jgz9FuUNW2pZHOvy6ceSd2nA6lGpFRJOU AArykiLq93P3uJcZ3muwMOlqlY2iXn6hrdSX54LZYf5l1H1+BwJJM4LK9Ur8Ocg5fte2C5 ZXNuOaEzccXgEPocimcWy1tf3wxxkM8WKBImRjo64lPhFSaTcPR1LBopIdZqhWZfQHQX8R A2Cyc365q+42h2ilM2LkOipQDlS7M/Ky1WMgpBUEq9tQkDGkHdkUFsaGz5eMuQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fzt7X4yyFz15rq for ; Mon, 20 Apr 2026 17:40:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41efb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 20 Apr 2026 17:40:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 9b844b495e8e - main - rtld: fix processing of preloaded z_initfirst objects List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9b844b495e8e63439ffe523757ac7444a16317af Auto-Submitted: auto-generated Date: Mon, 20 Apr 2026 17:40:51 +0000 Message-Id: <69e66523.41efb.6899e7c3@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9b844b495e8e63439ffe523757ac7444a16317af commit 9b844b495e8e63439ffe523757ac7444a16317af Author: Konstantin Belousov AuthorDate: 2026-04-16 23:07:43 +0000 Commit: Konstantin Belousov CommitDate: 2026-04-20 17:25:20 +0000 rtld: fix processing of preloaded z_initfirst objects After we found some preloaded z_initfirst object, we must process till the end of the preload list still, not stopping on the first found object. Reported by: des Reviewed by: des, markj, siderop1@netapp.com Fixes: 78aaab9f1cf359f3b7325e4369653f6b50593393 Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56466 --- libexec/rtld-elf/rtld.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index e3f5aa5be9b4..29984e40b574 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2654,6 +2654,11 @@ initlist_add_objects(Obj_Entry *obj, Obj_Entry *tail, Objlist *list, initlist_add_neededs(obj->needed_aux_filtees, NULL, iflist); objlist_push_tail(iflist, obj); + + /* Recursively process the successor objects. */ + nobj = globallist_next(obj); + if (nobj != NULL && obj != tail) + initlist_add_objects(nobj, tail, list, iflist); } else { if (obj->init_scanned) return;