Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 29 Dec 2002 00:00:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 29 Dec 2002 00:00:29 -0500 Received: from mnh-1-16.mv.com ([207.22.10.48]:58117 "EHLO ccure.karaya.com") by vger.kernel.org with ESMTP id ; Sun, 29 Dec 2002 00:00:28 -0500 Message-Id: <200212290512.AAA05609@ccure.karaya.com> X-Mailer: exmh version 2.0.2 To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH] Allow UML kernel to run in a separate host address space In-Reply-To: Your message of "Sat, 28 Dec 2002 20:13:44 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 29 Dec 2002 00:12:51 -0500 From: Jeff Dike Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1446 Lines: 34 torvalds@transmeta.com said: > But that is an address space that it should already has access to > through, since it created it in the first place (ie it would fall > under the normal "sys_mm_indirect()" case). Yes, and so it doesn't fall under ptrace. I think we're in violent agreement here. > The thing that I _really_ don't want to have is soem uncontrolled way > to generate accesses to existing "struct mm_struct"s, since that is > really dangerous from a security standpoint. Fine by me. UML has no need for manipulating pre-existing address spaces. > We could have a PTRACE_GET_MM_FD kind of thing for ptrace (and then > the gdb/tracer can use that to create mappings in the process), but > the reason I want that "hook" to be through ptrace itself is simply > that it's a known interface to control other unrelated processes. > > So if you create the MM's yourself, you can use the indirection > directly. But if you want to control your children or unrelated > processes, you use ptrace to get the hook. Yup. As far as UML is concerned, this is all fine. It has no need of a PTRACE_GET_MM_FD since it creates all address spaces itself, but other tools might. Jeff - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/