Re: writable swap cache explained (it's weird)

Alan Cox (
Thu, 30 Jul 1998 23:35:29 +0100 (BST)

> Perhaps the /proc/self/mem mmap code could be changed to do the mlock
> automatically when shared aliases are created? Assuming that /proc/self/mem is
> the only mechanism that can create the problem, this would attack it at the
> source.
> The mlocked pages created in this way could be subject to the same
> limitiations as regular mlock() to prevent security problems.

It would be better to fix DOSemu. Firstly about 2/3rds of the DOSemu uses
seem to be fixable now we have mremap(). The others - aliasing emulations
are less funny but could be messily done with sys5 shm.

2.0.x question - why did this work ok in 2.0 (did it in fact work ok in 2.0)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at