public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Allison <fireflyblue@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Kernel page table and module text
Date: Tue, 19 Apr 2005 19:09:45 +0000	[thread overview]
Message-ID: <17d79880504191209295aec42@mail.gmail.com> (raw)

I want to do the following.

I want to find where each module is loaded in memory by traversing the
module list . Once I have the address and the size of the module, I
want to read the bytes in memory of the module and hash it to check
it's integrity.

How do I,
1. Traverse the module list and find it's address
2. Read the kernel page table to find the physical address of the
module location

thanks,
Allison


Allison wrote:
> Hi,
> 
> Since module is loaded in non-contiguous memory, there has to be an
> entry in the kernel page table for all modules that are loaded on the
> system. I am trying to find entries corresponding to my module text in
> the page tables.
> 
> I am not clear about how the kernel page table is organized after the
> system switches to protected mode.
> 
> I printed out the page starting with swapper_pg_dir . But I do not
> find the addresses for all the modules loaded in the system.
> 
> Do I still need to read the pg0 and pg1 pages ?
> 
> If somebody can explain how to traverse the kernel page tables, that
> would be very helpful.
> 
> thanks,
> Allison
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

             reply	other threads:[~2005-04-19 19:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 19:09 Allison [this message]
2005-04-20  0:16 ` Kernel page table and module text Dave Airlie
     [not found] <3V6qt-2ve-9@gated-at.bofh.it>
2005-04-20 17:37 ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
2005-04-21  0:54   ` Dave Airlie
  -- strict thread matches above, loose matches on Subject: below --
2005-04-18 16:17 Aleksey Gorelov
2005-04-18  6:20 Allison
2005-04-18  6:31 ` Chris Wedgwood

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=17d79880504191209295aec42@mail.gmail.com \
    --to=fireflyblue@gmail.com \
    --cc=linux-kernel@vger.kernel.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