From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38969 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhUKq-0003l3-Pa for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:52:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhUKp-0007PQ-J4 for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:52:28 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:52338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhUKp-0007Ot-BP for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:52:27 -0500 Received: by wwi18 with SMTP id 18so4475704wwi.10 for ; Mon, 24 Jan 2011 13:52:26 -0800 (PST) Message-ID: <4D3DF495.8000707@gmail.com> Date: Mon, 24 Jan 2011 22:52:21 +0100 From: Stefano Bonifazi MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-user: relocating target code weakness References: <4D3D63B3.1030402@gmail.com> <4D3DC1F6.9030800@gmail.com> <4D3DE7F8.6080807@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Frysinger Cc: Mulyadi Santosa , QEMU Developers > but that can happen with the app running natively too, so any app not > handling MAP_FIXED failures is buggy and not qemu's problem. > -mike How? For what I learned each process executing on a OS with an mmu sees its virtual address space, and normally only its code is loaded there (well I am learning that the dynamic linker also inject into that space shared library code used by the process code, but of course a good dynamic linker would prevent clashes!) so how can it happen that it can clash with anything?? If I remember fine, at the time of DOS there were some addresses reserved for the OS, and then only one executable could run at time, but in modern time with virtual addressing I don't think it is possible other than in scenarios alike ours.. Regards, Stefano B.