Re: Kernel page table and module text

2005-04-20 Thread Dave Airlie
> > > 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. > > JFTR: This may work against random memory corruption

Re: Kernel page table and module text

2005-04-20 Thread Bodo Eggert <[EMAIL PROTECTED]>
Allison <[EMAIL PROTECTED]> wrote: > 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. JFTR: This may work against ran

Re: Kernel page table and module text

2005-04-19 Thread Dave Airlie
> 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. > Heres some code I wrote for Stargames to do a CRC tracking of ev

Re: Kernel page table and module text

2005-04-19 Thread Allison
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

RE: Kernel page table and module text

2005-04-18 Thread Aleksey Gorelov
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Allison >Sent: Sunday, April 17, 2005 11:21 PM >To: linux-kernel@vger.kernel.org >Subject: Kernel page table and module text > >Hi, > >Since module is loaded in non-contigu

Re: Kernel page table and module text

2005-04-17 Thread Chris Wedgwood
On Mon, Apr 18, 2005 at 02:20:51AM -0400, Allison wrote: > If somebody can explain how to traverse the kernel page tables, that > would be very helpful. It might help if you explained what you are trying to do... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Kernel page table and module text

2005-04-17 Thread Allison
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 t