From: "Kuas (gmane)" <ku4s@users.sourceforge.net>
To: linux-mm@kvack.org
Subject: Page Mapping
Date: Sun, 04 Apr 2004 22:57:59 -0400 [thread overview]
Message-ID: <4070CB37.8070704@users.sourceforge.net> (raw)
Hello,
This might be very trivial question for people in this mailing list. I
need to know if my understanding is correct.
We are doing some experiment with Linux kernel for security. Right now,
we are trying to see some behavior in the Linux memory management. I am
trying to track and possibly scan (for now) all the pages that's just
brought into the memory. I am doing this in i386 arch and Linux kernel
2.4.22.
I think it would be good to do it in: mm/memory.c in do_no_page(). At
the end of the function, I have references to pte_t and page struct of
the fresh new page that's just brought in from disk (not swapped).
This is diagram the diagram I'm going to refer:
http://www.skynet.ie/~mel/projects/vm/guide/html/understand/node24.html
From my understanding from the diagram of Linear Address to Page
conversion (please let me know if I'm correct or misunderstood). The
struct "pte_t->pte_low" an entry if PTE table, is the base 'physical'
address of the page. In this case I can just use it to reference the
page. I can't find any other conversion method to get another address.
Assuming I have that address, can I just direct reference that address
(assuming the address is physical and from kernel mode) or do I have to
use some methods to access the page content?
How do I know the size of the page that's filled though? I can't see
that information from the page struct.
Thanks in Advance for comments and information.
Kuas
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next reply other threads:[~2004-04-05 4:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-05 2:57 Kuas (gmane) [this message]
2004-04-05 14:49 ` Kuas (gmane)
2004-04-19 15:26 ` Ed L Cashin
2004-04-19 15:58 ` Ed L Cashin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4070CB37.8070704@users.sourceforge.net \
--to=ku4s@users.sourceforge.net \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox