Re: Hopefully a simple question on /proc/pid/mem

Benjamin C.R. LaHaise
2001-04-30T19:26:02Z

On Mon, 30 Apr 2001, Alexander Viro wrote:

> ITYM "disabling _write_ on /proc/*/mem". Read is OK. Anyway, current
> mem_write() uses the same code as PTRACE_POKEDATA, so if the latter works,
> the former also should be OK.

Actually, even read on /proc/*/mem caused problems in 2.0: the elevated
usage could would prevent memory from being reclaimed by the swapper
properly. Things are so much better now it's not even funny.

-ben