mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* What's the reason that /dev/mem can't map unreserved RAM?
@ 2003-04-17 18:21 Steven Rostedt
  2003-04-17 20:05 ` Hugh Dickins
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2003-04-17 18:21 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: srostedt

Hi all,

What's the rational behind /dev/mem not being able to map unreserved RAM?
It can't be for protecting the system, because if you have access to 
reserved RAM (kernel text) then you can modify the remap_pte_range to 
allow for mapping of ram.

I have a user program for debugging kernel modules and the like, and it 
uses /dev/mem to map ram and prints it out. But unless I take out the 
check in remap_pte_range, I can't see allocated pages.

I just want to know the rational behind this.

Thanks,

-- Steve



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-17 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 18:21 What's the reason that /dev/mem can't map unreserved RAM? Steven Rostedt
2003-04-17 20:05 ` Hugh Dickins
2003-04-17 20:45   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®