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] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0904161654480.7855@qirst.com>
Date:	Thu, 16 Apr 2009 16:58:56 -0400 (EDT)
From:	Christoph Lameter <cl@...ux.com>
To:	Chris Friesen <cfriesen@...tel.com>
cc:	linux-kernel@...r.kernel.org, linux-mm <linux-mm@...ck.org>
Subject: Re: how to tell if arbitrary kernel memory address is backed by
 physical memory?

On Thu, 16 Apr 2009, Chris Friesen wrote:

> Quick question to the memory management folks.
>
> Is there a portable way to tell whether a particular virtual address in the
> lowmem address range is backed by physical memory and is readable?
>
> For background...we have some guys working on a software memory scrubber for
> an embedded board.  The memory controller supports ECC but doesn't support
> scrubbing  in hardware.  What we want to do is walk all of lowmem, reading in
> memory.  If a fault is encountered, it will be handled by other code.

Virtual address in the lowmem address range? lowmem address ranges exist
for physical addresses.

If you walk lowmem (physical) then you will never see a missing page.

So I guess you have a process that wants to determine if its memory is
present? See

	man 2 mincore

which describes a glibc call that shows which pages of a process are
present.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ