public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: copy to suer space
@ 2001-11-21 14:37 Joerg Pommnitz
  0 siblings, 0 replies; 19+ messages in thread
From: Joerg Pommnitz @ 2001-11-21 14:37 UTC (permalink / raw)
  To: linux-kernel

Nick LeRoy <nleroy@cs.wisc.edu> wrote:

 > Linux executables are "demand paged".  What this means is that they are

 > loaded as they are "page faulted" in.  If low on memory, the kernel 
 > may, at it's discression, discard text pages at any time.  When a 
 > discarded page is referenced, a page fault occurs, and the page is re-
 > loaded from the executable.  They are *never* written out to swap 
 > space.  The kernel fully expects the text file and the text memory 
 > pages to not be modified during execution.

Clean pages are never written to swap space. If the page is dirty, it's
just another data page. If it were otherwise, non-PIC shared libraries
that require fixups from the dynamic linker would not work.

Regards
  Joerg


=====
-- 
Regards
       Joerg


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <Pine.LNX.4.31.0111201637420.13674-100000@mail.deis.isec.pt >]
* copy to suer space
@ 2001-11-20 16:40 Luis Miguel Correia Henriques
  0 siblings, 0 replies; 19+ messages in thread
From: Luis Miguel Correia Henriques @ 2001-11-20 16:40 UTC (permalink / raw)
  To: linux-kernel

Hi,
I'm trying to implement a kernel module that will be changing a user
process' code segment. I tried to user copy_to_user to patch the process's
code but, when I tried to read the new code (just to check...), it didn't
worked. Why was that? And what is the solution?

Thanks

Luis Henriques


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

end of thread, other threads:[~2001-11-23 23:54 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <sbfa4d3a.051@MAIL-SMTP.uvsc.edu>
2001-11-21 10:49 ` copy to suer space Luís Henriques
2001-11-21 14:37 Joerg Pommnitz
     [not found] <Pine.LNX.4.31.0111201637420.13674-100000@mail.deis.isec.pt >
2001-11-20 17:02 ` Anton Altaparmakov
2001-11-20 17:08   ` Luís Henriques
2001-11-20 18:41     ` Andreas Dilger
2001-11-20 18:44       ` Luís Henriques
2001-11-20 18:58         ` Hua Zhong
2001-11-20 19:39         ` Andreas Dilger
2001-11-21  0:06           ` Mike Fedyk
2001-11-21 10:52             ` Luís Henriques
2001-11-23 13:14               ` Juan Quintela
2001-11-23 14:35                 ` Luís Henriques
2001-11-23 23:53                   ` H. Peter Anvin
2001-11-20 17:37   ` Anton Altaparmakov
2001-11-20 17:53     ` Luís Henriques
2001-11-20 18:18       ` Nick LeRoy
2001-11-22 18:51       ` Andreas Bombe
2001-11-20 18:09   ` Luís Henriques
  -- strict thread matches above, loose matches on Subject: below --
2001-11-20 16:40 Luis Miguel Correia Henriques

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