lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250530201814.52489-1-sj@kernel.org>
Date: Fri, 30 May 2025 13:18:14 -0700
From: SeongJae Park <sj@...nel.org>
To: Ye Liu <ye.liu@...ux.dev>
Cc: SeongJae Park <sj@...nel.org>,
	akpm@...ux-foundation.org,
	linux-debuggers@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	linux-mm@...ck.org,
	linux-toolchains@...r.kernel.org,
	osandov@...ndov.com,
	paulmck@...nel.org,
	sweettea-kernel@...miny.me,
	liuye@...inos.cn,
	fweimer@...hat.com
Subject: Re: [PATCH v4] tools/mm: Add script to display page state for a given PID and VADDR

On Fri, 30 May 2025 11:18:59 +0800 Ye Liu <ye.liu@...ux.dev> wrote:

> 
> 在 2025/5/29 07:42, SeongJae Park 写道:
> > On Wed, 28 May 2025 17:15:43 +0800 Ye Liu <ye.liu@...ux.dev> wrote:
> >
> >> From: Ye Liu <liuye@...inos.cn>
[...]
> >> Output example:
> >> sudo ./show_page_info.py 1 0x7fb3eb1b2000
> >> PID: 1 Comm: systemd mm: 0xffff8d27279f9cc0
> >> Raw: 0017ffffc000416c fffff31105a61b08 fffff31105a63608 ffff8d27121326a8
> >> Raw: 0000000000000000 ffff8d271b9dcc40 0000002500000007 ffff8d2711f12700
> >> User Virtual Address: 0x7fb3eb1b2000
> > This is same to what the user passes as the input.  I think this is not really
> > needed?
> 
> It will be removed in the next version.

Thank you!

> 
> >> Page Address:         0xfffff31106356a00
> >> Page Flags:           PG_referenced|PG_uptodate|PG_lru|PG_head|PG_active|
> >>                       PG_private|PG_reported|PG_has_hwpoisoned
> >> Page Size:            4096
> >> Page PFN:             0x18d5a8
> >> Page Physical:        0x18d5a8000
> >> Page Virtual:         0xffff8d274d5a8000
> >> Page Refcount:        37
> >> Page Mapcount:        7
> >> Page Index:           0x0
> >> Page Memcg Data:      0xffff8d2711f12700
> >> Memcg Name:           init.scope
> >> Memcg Path:           /sys/fs/cgroup/memory/init.scope
> > On my setup, above two lines look like below:
> >
> >     Memcg Name:           unknown
> >     Memcg Path:           Unexpected error: 'struct kernfs_node' has no member 'parent'
> >
> > Maybe there are rooms to improve?
> The drgn version needs to be updated.

As I mentioned on the v5 of this patch series, I'd hope this output be easier
to understand that.


Thanks,
SJ

[...]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ