From nobody Wed Sep 20 21:20:55 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 4RrWfc49PVz4vBld for ; Wed, 20 Sep 2023 21:20:56 +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 4RrWfc37bRz4Qc4 for ; Wed, 20 Sep 2023 21:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695244856; a=rsa-sha256; cv=none; b=YpgNI9Zv5dHajGYOxCP7D9DuT3pNmcL5JufKn9Iu0OostBdoAktOnZYlCv1xiPiZxuTHvy J9Z5Y7iGJCtytU2jv3qoPUbS0jRmw2FkWe5ias860ZZPiBIxQNBkn+Adrc5N5OG2Wf2P6K TVLpeRvNBwiSTJSmAcxuPHYc3YTmLbnxk+bENKYZRMjIGJ1KaBF+TpiYPMJpIT2qqfCu5I +Du+lz13Q89fBORW7QfVoxv3FvcA/2+Yw6Bijsi1V7qcjOagMpU9lNW3qLjSitPiv3fIJ0 h9Qf0bFTtgHt61ftjZvOVx6g2pN7cgyXUyQZioBtxzFQ38B7p+mTZgGsNJq9uQ== 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=1695244856; 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=xwzPWhkHmYWmewCzod7MOvMeAYjPIS5+4hoZ+q4fRBk=; b=aZc8T4lSqmFYUWA6VE+N0LdjaPI5lHZ77h51+PCLxpjmachrlE2SJIdHTG40VMzWvQNzbm L4V7kemC1qr4O9uohqLepuVRl3IeZ12hvWeBEVWN9ohbVyNeXiD2KDezOvx9qYEWuKjid5 tyUBGjJemhu6jcFbyMFklMVz5tdCJCBJ4hKglJHRDd8dZx4i8YtdueXZwiLquW+h+4hTyI pMYmI3lVjJ7mTg5/qupRZIo4KNytxQXTFeD0sun4ZMBP15cP7rKG3Id/Hdg1ThVsdyZWL7 ZEboS3k3BqDYDLS1pALUTNIGnou87u6PASk2GU0niFwK4LUXYiEzGlZpSSBTNw== 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 4RrWfc2FZ2z1BHv for ; Wed, 20 Sep 2023 21:20:56 +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 38KLKuNK023179 for ; Wed, 20 Sep 2023 21:20:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38KLKuYJ023178 for bugs@FreeBSD.org; Wed, 20 Sep 2023 21:20:56 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: Wed, 20 Sep 2023 21:20:55 +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: emaste@freebsd.org 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 #10 from Ed Maste --- Interesting - I made a little program that uses KERN_PROC_VMMAP and dumps i= ts own map. When I run it normally I see the 4th PT_LOAD as swap: $ ./a.out 1 0x0000000000200000 - 0x0000000000201000 (0x00001000) r-- vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 2 0x0000000000201000 - 0x0000000000202000 (0x00001000) r-x vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 3 0x0000000000202000 - 0x0000000000203000 (0x00001000) r-- vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 4 0x0000000000203000 - 0x0000000000204000 (0x00001000) rw- swap 5 0x0000000800dca000 - 0x0000000820daa000 (0x1ffe0000) --- guard 6 0x0000000820daa000 - 0x0000000820dca000 (0x00020000) rw- swap If I use rtld's exec mode the PT_LOAD is vnode: $ /libexec/ld-elf.so.1 ./a.out=20 1 0x0000000000200000 - 0x0000000000201000 (0x00001000) r-- vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 2 0x0000000000201000 - 0x0000000000202000 (0x00001000) r-x vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 3 0x0000000000202000 - 0x0000000000203000 (0x00001000) r-- vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 4 0x0000000000203000 - 0x0000000000204000 (0x00001000) rw- vnode File: /usr/home/emaste/src/freebsd-git/main/a.out 5 0x000039b4b379c000 - 0x000039b4b37a2000 (0x00006000) r-- vnode File: /libexec/ld-elf.so.1 6 0x000039b4b37a2000 - 0x000039b4b37ba000 (0x00018000) r-x vnode File: /libexec/ld-elf.so.1 ... --=20 You are receiving this mail because: You are the assignee for the bug.=