Re: /dev/mem contains physical memory addresses?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-07-06 at 15:06 +0530, Daniel Rodrick wrote:
> Hi list,
> 
> I read that the /dev/mem represents the memory of the system.
> 
> 1) Does that mean I can if start reading from /dev/mem, I can read any
> portion of the memory?

depends on your kernel; several distributions apply security patches
that prevent rootkits from doing evil things in /dev/mem; with those you
can only access non-kernel memory via /dev/mem

> 2) If I read at offset "n" in the file /dev/mem, would I be reading
> contents of the PHYSICAL memory address "n", or the VIRTUAL memory
> addtress "n"?

PHYSICAL. if you want virutal you need to use /dev/kmem.


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

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux