From nobody Thu Nov 30 19:36:10 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 4Sh5yy2Wy6z52Ssj for ; Thu, 30 Nov 2023 19:36:10 +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 4Sh5yy0nyQz3LHH for ; Thu, 30 Nov 2023 19:36:10 +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=1701372970; 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=wHQ1T0PR2VKx7rE95gpQpi9AxkDLFyvuXOWGkwrNDw8=; b=JfsFJ6EPDGybuCPHaltYDtXNXSJU8S89XYJSW+yQENW8wpLUWIRttX1kySsvRg8AkLLSVt /UNL9rO10qZOjRItU486pMkGD3LKqQ2vUoIr9K5DEGmiuMkZ3CObkKdN5GMZRDB3grBRU1 4NQlU450+KejTPycRHdxkLILt89D1OKEzZfMbJTaZ3U1sJRkOAh5w5f5Sw/ux4tUueaSiR cO+B3jevzYeJF2WTfhPJSBfeSJ8ktR/HmNDm2EA0Km2cfUYYZ9tLp/JcFPK2XqBoPwann0 mwi9tJxAEvqTjz5rwkTo+F0UVYYoIyjaUJChb3zQWq4BJyKwLI0+X1S6sE7jFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701372970; a=rsa-sha256; cv=none; b=Z73KEP7TeVpRmWssu2tkHhcxQ5M4NtA+cdxex4sGIae2r4VFNibWVAZbIlXmV80mn8aaIp 3vhWW9Ya6QOaskS/Mn9ttd8rUAf4jqrb4CEszbIkQE/wrsS275K3gY4RwhodDQ8ht7IPFG f3qq510gKR8czGGLa6lFMvwTeTrpY5qpteaDzyh3l4aioq1U8WL2fKTVITWYN1GChpbmJO m8XeDkKGlwmQwp9NBTlVACRU/eCHVXofOjGmUMpXNKbfEDiRzElrjWIsad6cfnCAfZkYPL eQmmvHLKTZoR3aDvwaLwCRe7/dGqdZcjLuLdOZ1FXhn7UK0AsLOCvJAtEUK1ng== 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 4Sh5yx71Xkz12fX for ; Thu, 30 Nov 2023 19:36: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 3AUJa93i056615 for ; Thu, 30 Nov 2023 19:36:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AUJa9AG056614 for bugs@FreeBSD.org; Thu, 30 Nov 2023 19:36: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 275393] RTLD_DEEPBIND semantics not quite right Date: Thu, 30 Nov 2023 19:36:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified 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: 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=3D275393 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9daf6cd0f46416d9c6eb0411ea6042cd4= 2b8a9bc commit 9daf6cd0f46416d9c6eb0411ea6042cd42b8a9bc Author: Konstantin Belousov AuthorDate: 2023-11-29 18:30:59 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-30 19:34:36 +0000 RTLD_DEEPBIND: make lookup not just symbolic, but walk all refobj' DAGs before starting the walk over the global list. Effectively we visit needed objects first as well, instead of just the object itself. This seems to better match the semantic offered by the glibc flag. Reported by: kevans PR: 275393 Reviewed by: kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42841 libexec/rtld-elf/rtld.c | 8 ++++++-- libexec/rtld-elf/rtld.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=