From nobody Thu Sep 21 07:28:44 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 4Rrn7x6rgpz4tgt3 for ; Thu, 21 Sep 2023 07:28:45 +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 4Rrn7x4nlPz3gJc for ; Thu, 21 Sep 2023 07:28:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695281325; a=rsa-sha256; cv=none; b=tHJ3moiVcd+SCYEk/sAS6YHrWI0YBLLRYgCw6aeP7rkoXdo5k3fHBmmjZFa2rpkcKz5vAq rJZbsVECj0Qu0EY9ed2sPw8JuCBgOik9QvGnEW73P3MfByzzY7BhxlaawW7AsYJbbyBXdn Vua6i2jQVm0dr3yerY6Jzx5ty4X9qhXnBFrezg0pFSFfkc5WZ8/fp7vnowYPe8nXPeQlMN uzBecNoufYjeeQR94BexIl5Lp09rj/xY+nfUMtZHsxpj6pyhM+f1XRKRpHqiGgz2reLYHx EUyfkrcXnYDPlsH2y1rbCT6aYq5cizmB18h/wWDfqJUpul35BLKO7n2aPtPfRw== 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=1695281325; 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=h8RCjKH+gBeX08Wav3PihgoUetWyNXYiIKYWdx/onnY=; b=PhBUYEaXTb+3Wfc5X46qw+q9OJQQh50Akb6e7VD4UGoXeFIKThiE0ChHcKlAFYuXoo+51P 8kS9jFuWXzXpRAB3gnw4dxszBpekkfMSwK8CB6UVeynV5xLNqZqU0wT+wtX7RW5Twmg0Qa FX0ipz3xPjoWi3Kb0L4Ix+DNvyi4NgBzACgYQMNHZUnfwBASVmqf/Bndb1kcgm5h0ag2vF 1iKndmMzHbU3Kujdf5kNwLWhuMBbzF1H79WMvfbF94L0oIwo0zBoIbMSPA8QrRLcsTuj1g an0PMRIUVzFgCLJcrV1caOYNhPlXxhQqtkaHOJu1ul4n375K9H5xjWCOK52cOg== 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 4Rrn7x1QxrzVZB for ; Thu, 21 Sep 2023 07:28:45 +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 38L7SjBc012074 for ; Thu, 21 Sep 2023 07:28:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38L7SjiO012073 for bugs@FreeBSD.org; Thu, 21 Sep 2023 07:28:45 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 273956] KERN_PROC_VMMAP does not read all mapped files Date: Thu, 21 Sep 2023 07:28:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: Open 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=3D273956 --- Comment #14 from Paul Floyd --- There are 3 ways that Valgrind triggers reading debuginfo 1. from its own image as here 2. from the guest ld-elf.so.1 and exe which Valgrind loads 3. from anything that the guest loads once it is running under Valgrind. There's a longer explanation in coregrind/m_debuginfo/debuginfo.c starting = line 1028 The two main goals are to use the same code for all cases and to avoid loo= king for debuginfo in non executable files. I'm not sure if that second goal is still valid, but that's a different story. For case 1 (and 2) we can be absolutely certain that the file is an ELF executable. Case 1, the code wouldn't be running otherwise! I can probably bodge the code to make it look like a RW section was seen and just use the filename from the RX section. How have things changed between 13.2 and 14.0 to cause this? --=20 You are receiving this mail because: You are the assignee for the bug.=