From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 5 15:37:33 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BBBD16A46C for ; Mon, 5 Nov 2007 15:37:33 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C6D6213C4B5 for ; Mon, 5 Nov 2007 15:37:32 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id F02E0669B48; Mon, 5 Nov 2007 16:37:17 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 62sGxx8Evg+a; Mon, 5 Nov 2007 16:37:17 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 0BAAF669AE5; Mon, 5 Nov 2007 16:37:17 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id lA5FbEir052398; Mon, 5 Nov 2007 16:37:14 +0100 (CET) (envelope-from rdivacky) Date: Mon, 5 Nov 2007 16:37:14 +0100 From: Roman Divacky To: Kostik Belousov Message-ID: <20071105153714.GA52292@freebsd.org> References: <20071101152550.GA10868@cons.org> <472B0454.9040408@chikalov.dp.ua> <472B9CD1.1010607@chikalov.dp.ua> <472DAF60.9040008@chikalov.dp.ua> <20071104122023.GA5528@freebsd.org> <472DC7C3.3090105@chikalov.dp.ua> <20071104133518.GA7275@freebsd.org> <20071104171423.GL37471@deviant.kiev.zoral.com.ua> <472E067A.5050601@chikalov.dp.ua> <20071105095053.GP37471@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071105095053.GP37471@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: Linux emulation on FreeBSD AMD64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 15:37:33 -0000 > No, this is wrong fix. It changes the ABI for freebsd binaries, and does > this not only for SysV shm, but for any readable mapping. yes.. the patch is wrong > Instead, the following things shall be made: > 1. linux_shmat() shall call kern_shmat(). > 2. kern_shmat() shall take the flag that would force the read mapping > to be also executable. > 3. this flag shall be set when kern_shmat() is called from linux_shmat(), > and not set when called from shmat(). that sounds about correct. but I think it should cover 32bit fbsd binaries running on amd64 as well.. roman