From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 6 13:42:57 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B438F16A407 for ; Sat, 6 Jan 2007 13:42:57 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 44FBB13C45D for ; Sat, 6 Jan 2007 13:42:57 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F586.dip.t-dialin.net [84.165.245.134]) by redbull.bpaserver.net (Postfix) with ESMTP id BBCF32E146; Sat, 6 Jan 2007 14:47:46 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 8ACCA5B497E; Sat, 6 Jan 2007 14:42:49 +0100 (CET) Date: Sat, 6 Jan 2007 14:42:48 +0100 From: Alexander Leidinger To: "Scot Hetzel" Message-ID: <20070106144248.4c566fc3@Magellan.Leidinger.net> In-Reply-To: <790a9fff0612311121l662736e0ud6d3220382af072a@mail.gmail.com> References: <790a9fff0612290911t5ae69715gd2bf0dda0f9228f2@mail.gmail.com> <20061229213509.GA86839@stud.fit.vutbr.cz> <790a9fff0612291424g4ecbd088i7846d248851b3e63@mail.gmail.com> <20061230120722.GA36814@stud.fit.vutbr.cz> <790a9fff0612301926n1562d560r1f3fff9af4bdb138@mail.gmail.com> <790a9fff0612301955r35b16472r2429fbe3fce78228@mail.gmail.com> <20061231144257.61520dc8@Magellan.Leidinger.net> <20061231142412.GA28462@stud.fit.vutbr.cz> <790a9fff0612311121l662736e0ud6d3220382af072a@mail.gmail.com> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator: amd64 Linux Test Project failures 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: Sat, 06 Jan 2007 13:42:57 -0000 Quoting "Scot Hetzel" (Sun, 31 Dec 2006 13:21:27 -0600): > On 12/31/06, Divacky Roman wrote: > > On Sun, Dec 31, 2006 at 02:42:57PM +0100, Alexander Leidinger wrote: > > > Quoting "Scot Hetzel" (Sat, 30 Dec 2006 21:55:37 -0600): > > > > > > > I think I found the problem, I had wrongly assumed that the code was > > > > using (char *)-1 as the address to pass to the function. Instead the > > > > code in access03, is using mmap to assign an address to variable > > > > bad_address. > > > > > > > > Below is the test program that shows that the problem is in mmap. > > > > > > http://lists.freebsd.org/pipermail/freebsd-emulation/2006-September/002625.html > > > > I guess what alexander wanted to say is that you should test the mmap patch > > that got commited to i386 mmap (see > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/linux/linux_machdep.c.diff?r1=1.55&r2=1.56) > > > > and apply that to amd64 mmap and see if that fixes the issue you see.. > > > > pls do that and inform us > > > That patch to mmap fixes the problems with mmap on amd64, and brings > the failed LTP testcases closer to the i386 failed testcases. > > Results of mmap fingerprinter: > mmap1.txt - before mmap patch > mmap2.txt - after mmap patch I worry about this part: - /* - * XXX i386 Linux always emulator forces PROT_READ on (why?) - * so we do the same. We add PROT_EXEC to work around buggy - * applications (e.g. Java) that take advantage of the fact - * that execute permissions are not enforced by x86 CPUs. - */ - bsd_args.prot = linux_args->prot | PROT_EXEC | PROT_READ; + + bsd_args.prot = linux_args->prot; Can you please test if a java program (linux jvm, not a native jvm) like for example the linux version of eclipse or azureus is working on amd64? If it fails with the patch and without the patch, I will commit it. If it doesn't work after the patch but before the patch, we need to extend the mmap finger printing tool regarding the EXEC stuff. One more thought... if it fails with the patch but not without it: add the "|PROT_EXEC" part to the patched version. Bye, Alexander. -- The joys of love made her human and the agonies of love destroyed her. -- Spock, "Requiem for Methuselah", stardate 5842.8 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137