From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 30 Apr 2001 15:26:18 -0400 (EDT) From: Alexander Viro Subject: Re: Hopefully a simple question on /proc/pid/mem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Benjamin C.R. LaHaise" Cc: "Stephen C. Tweedie" , Richard F Weber , linux-mm@kvack.org List-ID: On Mon, 30 Apr 2001, Benjamin C.R. LaHaise wrote: > On Mon, 30 Apr 2001, Alexander Viro wrote: > > > I wonder what's wrong with reading from /proc//mem, though - it's > > using the same code as ptrace. > > We can actually do this cleanly now that we have proper page_dirty > semantics for raw io. The original reason for disabling /proc/*/mem was > that it left big gaping holes in the mm code in 2.0, and it hasn't been > repaired since. 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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/