From nobody Wed Feb 05 06:16:59 2025 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 4Ynql23PHBz5mDHN for ; Wed, 05 Feb 2025 06:17:02 +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 4Ynql008psz467s for ; Wed, 05 Feb 2025 06:17:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738736220; 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=ihuaE0sG6t2wLIrYCdesl2nj9SFkM0U3vg9xuibEdY4=; b=Zv6ELcfzld0MOBd33I+lV1DR8riSu5hhhEI9EQqVsI/8pifcPdp7Sd5aqhhVLKtbChInTl ZR+2DZ/tkzzk6hzhOTqUTCJykEYWa91i3oc7M7m/EMpSgfs0yNtE7nL9OSjqhIF77oywrn xB4h03GwolhXAN/J9fR2tNkBFa8fBip+IC7Z8hiyQJzK2pXXAkPK7PsFd6j+EuS1jl3NWk knYZSwJ/QL7HCO/oX7PIcYiwo3ZRCcJUYCUIg3StMSgmnEQCu4cHMDDSunOcr8jk2NTNyr T0zkWB4E4ddk/2fc2i2Kl5amUS7F4vZhSq/kww9q8iPkBkZaXVD7vK4IUouoBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738736220; 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=ihuaE0sG6t2wLIrYCdesl2nj9SFkM0U3vg9xuibEdY4=; b=yaQEFtxjLBrvQfP1yF2DqY4FDQMPxqH0HhBXD9SLnADNTNlFTZs6YODT/tlKIijmLVGxJh 1X72Ib6ei5M6l0Nku9Sb/Cs4G24XO95IvxRIKVdILEzOi7gLRCvcVF7wzwZiJesA+zt4Ia 3h+9QiQQ7lqt9CJHU5nCwfYwrncqKgyEAoj7fxKF8MjMHKjHyQh9JdB4UElzEUnzjBLJZc snPQ6HYAYG6Tgqp1PX5tnYznj0GqBp6ZQ20Wf1aAW50L1VpoSD1Hu77tI7UwKCr+igwzex iDz3KHcG8LqQJQLPeqrp1iclVVNMfJ5rE+LkMylT3KjjcAKTQHSZJ3e0HUPryQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738736220; a=rsa-sha256; cv=none; b=vTHBZSB7clAXxQ9Y+hMC02r8gJ7vkrPtKOdP/0dwYE6FrM7Ly+fq49mfLp/7l9LOGEjlEy hGuZCJXsFzaeFafio8rtyXeakS/d9LfFiYkNqkiBrpG6ZwUS+3fFKRM3x7E2gmemXrSzHh 0FVjAPSf93rP/Xnvr7jiLyv6fbIwWacYZH0p1B+ZuXqzfa7bWWL9oyh9EN8fPL14Kmvr+R XFx/B4Z9A7UdHej1rXNUHoejgZXKkAHT3QxBag7uU5Kb5Xw2yfNCIQWuKLtVRu9nMFjpVx oqgBz8zMin9QjZQlkHYw6pwiAVm+EyjFPN1YIY1mO8Z3ewV+XJxl95r0a3Q6Uw== 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 4Ynqkz6V0hzgVY for ; Wed, 05 Feb 2025 06:16:59 +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 5156Gxa3097268 for ; Wed, 5 Feb 2025 06:16:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5156Gxc1097267 for bugs@FreeBSD.org; Wed, 5 Feb 2025 06:16:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284563] Holes in struct rtld_utrace Date: Wed, 05 Feb 2025 06:16:59 +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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr 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-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: 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=3D284563 --- Comment #2 from Paul Floyd --- (In reply to Konstantin Belousov from comment #1) You're right, I was too quick looking at the struct. Here is the pahole out= put struct utrace_rtld { char sig[4]; /* 0 4 */ int event; /* 4 4 */ void * handle; /* 8 8 */ void * mapbase; /* 16 8 */ size_t mapsize; /* 24 8 */ int refcnt; /* 32 4 */ char name[1024]; /* 36 1024 */ /* size: 1064, cachelines: 17, members: 7 */ /* padding: 4 */ /* last cacheline: 40 bytes */ }; so there is just the 4 bytes of padding at the end that is uninitialized and was triggering errors. The i386 ld.so is OK since everything is a multiple = of 4. I've already fixed this in Valgrind. I don't know whether MSAN has a similar issue. Zeroing the entire 1064 bytes would also fix the problem for sure. --=20 You are receiving this mail because: You are the assignee for the bug.=