lkml.org 
[lkml]   [1998]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: writable swap cache explained (it's weird)
On Wed, 29 Jul 1998, Bill Hawes wrote:

> To fix this I think we need to mark the whole mess as unswappable. It
> won't work to just test for a writable pte to a shared page -- in this
> case one of the sharings is only readable. So if the readable one gets
> swapped out first, the remaining mappings would still be a problem.
>
> Anyone have any ideas for the best way to detect and handle this case?

There are two options:

a) disallow MAP_SHARED mappings of anonymous memory from
/proc/self/mem

b) implement shared anon mappings

(a) sounds like the Obvious Thing To Do in the mmap method for /proc, but
will break xdos. Wtf were they thinking in writing that insane code?
Hmmm, this bug probably applies to 2.0 too.... in a much more subtle
fashion.

As for (b), I'll try to present code by Saturday, as it is a nice feature
to add to our cap. =) (No, it's not going to be anything like the awful
shm code.)

-ben


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.210 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site