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]
Date:	Tue, 10 Jul 2007 04:09:40 +0530
From:	"Nobin Mathew" <nobin.mathew@...il.com>
To:	"vraghavan3@...l.gatech.edu" <vraghavan3@...l.gatech.edu>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Reading a physical memory location

Hi,
        If you know the physical address, then you get virtual address
from that physical adress by using ioremap().

Then you can use readl(virtualaddress) to read the string from there

Nobin Mathew

On 7/10/07, vraghavan3@...l.gatech.edu <vraghavan3@...l.gatech.edu> wrote:
>
>
> --
> Hey all,
>
> I know the physical address of a string which is loaded into flash memory. I
> want to read the string at the known physical memory location from within a
> kernel module. I initially tried reading the "/dev/mem" file using open(),
> lseek() and read(). But I guess its not possible to call these functions from a
> kernel module.
>
> Is there some way of reading the contents of this physical memory location from
> within a kernel module?
>
> Thank You
> Veena
> -
> 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/
>
-
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