From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 1 11:08:37 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 9365616A416 for ; Mon, 1 Jan 2007 11:08:37 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 825D513C4BE for ; Mon, 1 Jan 2007 11:08:37 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l01B8b9w048832 for ; Mon, 1 Jan 2007 11:08:37 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l01B8aVo048828 for freebsd-emulation@FreeBSD.org; Mon, 1 Jan 2007 11:08:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Jan 2007 11:08:36 GMT Message-Id: <200701011108.l01B8aVo048828@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 01 Jan 2007 11:08:37 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/77710 emulation [linux] Linux page fault sigcontext information is wro o kern/101453 emulation [linux] [patch] linprocfs disallows non-zero file offs f ports/102474 emulation linux_base-fc-4_8 appears broken, does not allow to ru o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] feature request: easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula 8 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 1 19:29:38 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 0CC6E16A40F for ; Mon, 1 Jan 2007 19:29:38 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by mx1.freebsd.org (Postfix) with ESMTP id C143B13C45A for ; Mon, 1 Jan 2007 19:29:37 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so2433064nzh for ; Mon, 01 Jan 2007 11:29:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BHSi6EEexJrow4M9podiWVMIdM8iU9MZiist31n9eCVZimVa+24/cuSFBXTMZJqIQH+Go1KFZ5wmSFZnKgXBmABd6faDd0gvSgYtqQPa5D7i8aBP7MtLDPyTaSKGyLzUJ2lYgWVaGa30+Ml1pcijPqFdYQAYAU5ysowzbENFJLE= Received: by 10.65.200.14 with SMTP id c14mr25469440qbq.1167679777028; Mon, 01 Jan 2007 11:29:37 -0800 (PST) Received: by 10.65.61.1 with HTTP; Mon, 1 Jan 2007 11:29:36 -0800 (PST) Message-ID: <790a9fff0701011129u3c23f1cy4d0d39c9bc81b931@mail.gmail.com> Date: Mon, 1 Jan 2007 13:29:36 -0600 From: "Scot Hetzel" To: "Divacky Roman" In-Reply-To: <790a9fff0612311121l662736e0ud6d3220382af072a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Cc: Alexander Leidinger , 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: Mon, 01 Jan 2007 19:29:38 -0000 I compared the mmap finger printer output (mmap2.txt) on a FreeBSD-CURRENT system with a patched linux_mmap_common and the output from a Linux AMD64 system found in the below link: http://lists.freebsd.org/pipermail/freebsd-emulation/2006-September/002663.html There were no differences between them. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 2 07:51:28 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 611ED16A416 for ; Tue, 2 Jan 2007 07:51:28 +0000 (UTC) (envelope-from "") Received: from mail.console.dk (console.dk [80.82.96.207]) by mx1.freebsd.org (Postfix) with SMTP id B490313C44C for ; Tue, 2 Jan 2007 07:51:27 +0000 (UTC) (envelope-from "") Received: (qmail 15101 invoked by uid 85); 2 Jan 2007 07:24:44 -0000 Date: 2 Jan 2007 07:24:44 -0000 From: "System Anti-Virus Administrator" To: freebsd-emulation@freebsd.org Message-ID: X-Tnz-Problem-Type: 40 MIME-Version: 1.0 Content-type: text/plain Subject: virus found in sent message "Mail Delivery (failure benddisturb@xboxlife.dk)" 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: Tue, 02 Jan 2007 07:51:28 -0000 Attention: freebsd-emulation@freebsd.org A virus was found in an Email message you sent. This Email scanner intercepted it and stopped the entire message reaching its destination. The virus was reported to be: Worm/NetSky.P.Expl worm Please update your virus scanner or contact your IT support personnel as soon as possible as you have a virus on your system. Your message was sent with the following envelope: MAIL FROM: freebsd-emulation@freebsd.org RCPT TO: benddisturb@xboxlife.dk ... and with the following headers: --- MAILFROM: freebsd-emulation@freebsd.org Received: from ppp-124.120.183.67.revip2.asianet.co.th (HELO xboxlife.dk) (124.120.183.67) by mail.console.dk with SMTP; 2 Jan 2007 07:24:38 -0000 From: freebsd-emulation@freebsd.org To: benddisturb@xboxlife.dk Subject: Mail Delivery (failure benddisturb@xboxlife.dk) Date: Tue, 2 Jan 2007 13:59:25 +0700 MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----=_NextPart_000_001B_01C0CA80.6B015D10" X-Priority: 3 X-MSMail-Priority: Normal --- From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 2 08:55:54 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 A9CEC16A407 for ; Tue, 2 Jan 2007 08:55:54 +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 5E5BF13C43E for ; Tue, 2 Jan 2007 08:55:54 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D942.dip.t-dialin.net [84.165.217.66]) by redbull.bpaserver.net (Postfix) with ESMTP id 54CB32E1AA; Tue, 2 Jan 2007 09:59:40 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E0F9D5B4847; Tue, 2 Jan 2007 09:55:47 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l028tlFV012048; Tue, 2 Jan 2007 09:55:47 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 02 Jan 2007 09:55:47 +0100 Message-ID: <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 02 Jan 2007 09:55:47 +0100 From: Alexander Leidinger To: Scot Hetzel 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> In-Reply-To: <790a9fff0612311121l662736e0ud6d3220382af072a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 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: Tue, 02 Jan 2007 08:55:54 -0000 Quoting Scot Hetzel (from Sun, 31 Dec 2006 13:21:27 -0600): > That patch to mmap fixes the problems with mmap on amd64, and brings > the failed LTP testcases closer to the i386 failed testcases. Thanks for testing, I try to get time to commit this. Bye, Alexander. -- It is a poor judge who cannot award a prize. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 2 16:53:21 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 A7E3616A407 for ; Tue, 2 Jan 2007 16:53:21 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3684413C428 for ; Tue, 2 Jan 2007 16:53:21 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l02GrIsS035461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jan 2007 17:53:18 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l02GrINX035459; Tue, 2 Jan 2007 17:53:18 +0100 (CET) Date: Tue, 2 Jan 2007 17:53:18 +0100 From: Divacky Roman To: Alexander Leidinger Message-ID: <20070102165317.GA35202@stud.fit.vutbr.cz> 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> <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-emulation@freebsd.org, Scot Hetzel 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: Tue, 02 Jan 2007 16:53:21 -0000 On Tue, Jan 02, 2007 at 09:55:47AM +0100, Alexander Leidinger wrote: > Quoting Scot Hetzel (from Sun, 31 Dec 2006 > 13:21:27 -0600): > > >That patch to mmap fixes the problems with mmap on amd64, and brings > >the failed LTP testcases closer to the i386 failed testcases. > > Thanks for testing, I try to get time to commit this. which makes me wonder what is MD on the linux_mmap* code. wouldnt it be better to move that to some MI file instead? and there are tons of similar code.. for example linux_pause. how is this MD? I'd vote for moving that code.. opinions? roman From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 2 23:25:13 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 059BB16A403; Tue, 2 Jan 2007 23:25:13 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.freebsd.org (Postfix) with ESMTP id 93A2913C441; Tue, 2 Jan 2007 23:25:12 +0000 (UTC) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Wed, 03 Jan 2007 07:25:08 +0800 id 0011F808.459AE9D4.00006CEC From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org Date: Wed, 03 Jan 2007 07:25:07 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Partially Unbreak Adobe Reader 7.0.8 for the New Linux Emulator 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: Tue, 02 Jan 2007 23:25:13 -0000 My patch for /sys/compat/linux/linux_file.c (7.0-CURRENT) can partially unbreak Adobe Reader 7.0.8 for Linux when the sysctl compat.linux.osrelease is set to "2.6.16". You may download the patch at: http://ftp.intron.ac/tmp/linux_file.c.diff But probably to your disappointment, the problem hasn't been completely solved yet. Even after you have applied my patch (Don't forget to set compat.linux.osrelease to "2.6.16"), you must remove the directory ~/.adobe before you start Adobe Reader 7.0.8 every time, otherwise the PDF file cannot be properly browsed. I have noticed that the calling behavior against the Linux system call mmap2(2) is strange: 1658: linux_mmap2(0x0,0x8974,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x8fd8,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x8974,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 790069248 (0x2f178000) 1658: linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 790069248 (0x2f178000) 1658: linux_mmap2(0x0,0x8fd8,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x8974,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x8a78,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) 1658: linux_mmap2(0x0,0x8974,0x1,0x1,0x0,0x6) = 790032384 (0x2f16f000) The last calling argument is always stupid 6, which doesn't agree with the calling behavior against mmap(2) when compat.linux.osrelease is set to 2.4.2. This probably means that all files mapped by mmap2(2) cannot be properly read from memory space. Screenshots: Normal cases: 1. FreeBSD Handbook, Chinese version: (This PDF file is much more complicated than the English one) http://ftp.intron.ac/tmp/adobereader-20070103-1.png 2. The manual page ls(1), produced by groff(1) + GhostScript: http://ftp.intron.ac/tmp/adobereader-20070103-2.png Abnormal case: Failed to remove ~/.adobe http://ftp.intron.ac/tmp/adobereader-20070103-3.png ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 3 01:27:58 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 C860F16A403 for ; Wed, 3 Jan 2007 01:27:58 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3CE13C44B for ; Wed, 3 Jan 2007 01:27:58 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from [81.210.194.157] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 78770672; Wed, 03 Jan 2007 01:27:55 +0100 Received: from [127.0.0.1] (saper@saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id l030RWsR003843 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 3 Jan 2007 01:27:44 +0100 (CET) (envelope-from saper@SYSTEM.PL) Message-ID: <459AF873.2060907@SYSTEM.PL> Date: Wed, 03 Jan 2007 01:27:31 +0100 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.7) Gecko/20061101 SeaMonkey/1.0.5 MIME-Version: 1.0 To: Divacky Roman 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> <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> <20070102165317.GA35202@stud.fit.vutbr.cz> In-Reply-To: <20070102165317.GA35202@stud.fit.vutbr.cz> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 03 Jan 2007 01:27:58 -0000 Divacky Roman wrote: > On Tue, Jan 02, 2007 at 09:55:47AM +0100, Alexander Leidinger wrote: >> Quoting Scot Hetzel (from Sun, 31 Dec 2006 >> 13:21:27 -0600): >> >>> That patch to mmap fixes the problems with mmap on amd64, and brings >>> the failed LTP testcases closer to the i386 failed testcases. >> Thanks for testing, I try to get time to commit this. > > which makes me wonder what is MD on the linux_mmap* code. wouldnt it be better > to move that to some MI file instead? > > and there are tons of similar code.. for example linux_pause. how is this MD? > I'd vote for moving that code.. > > opinions? For example amd64 implements execute protection natively (PROT_EXEC), while on i386 there is no way to separate this from PROT_READ. Other platforms (sparc) may have different mmap implementations and we may require different linux_mmap() behaviour (for example, on i386 PROT_EXEC silently implies PROT_READ, on amd64 it does not have to be the case). Having said that, we *may* be lucky and end up with identical mmap emulation for all platforms. But I would prefer to test PROT_EXEC compatibility first before we do that. Probably we should extend mmap fingerprinter to test for expected PROT_EXEC behaviour. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 3 06:50:20 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 383AA16A412 for ; Wed, 3 Jan 2007 06:50:20 +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 DF91113C45E for ; Wed, 3 Jan 2007 06:50:19 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F246.dip.t-dialin.net [84.165.242.70]) by redbull.bpaserver.net (Postfix) with ESMTP id 3DAA22E1A4; Wed, 3 Jan 2007 07:54:18 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 00A2A5B4847; Wed, 3 Jan 2007 07:50:10 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l036oA4C034769; Wed, 3 Jan 2007 07:50:10 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 03 Jan 2007 07:50:10 +0100 Message-ID: <20070103075010.rkmmd8fmhwsssws0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 03 Jan 2007 07:50:10 +0100 From: Alexander Leidinger To: Divacky Roman 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> <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> <20070102165317.GA35202@stud.fit.vutbr.cz> In-Reply-To: <20070102165317.GA35202@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 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, Scot Hetzel 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: Wed, 03 Jan 2007 06:50:20 -0000 Quoting Divacky Roman (from Tue, 2 Jan =20 2007 17:53:18 +0100): > On Tue, Jan 02, 2007 at 09:55:47AM +0100, Alexander Leidinger wrote: >> Quoting Scot Hetzel (from Sun, 31 Dec 2006 >> 13:21:27 -0600): >> >> >That patch to mmap fixes the problems with mmap on amd64, and brings >> >the failed LTP testcases closer to the i386 failed testcases. >> >> Thanks for testing, I try to get time to commit this. > > which makes me wonder what is MD on the linux_mmap* code. wouldnt it =20 > be better > to move that to some MI file instead? I thought about this as well. I came to the conclusion that I need to =20 have a look at the FreeBSD mmap code and to see if we have different =20 code on ia64, sparc64 and ppc than on ia32/amd64. If we have different =20 code there, it makes sense to have the linux_mmap MD. But this assumes =20 we will get linuxulator stuff for another architecture where different =20 MD code is needed. We could say that we should keep it MI until real =20 MD code is needed... > and there are tons of similar code.. for example linux_pause. how is this = MD? > I'd vote for moving that code.. > > opinions? You could make a table in the wiki which lists those parts which are =20 MD currently but can be made MI. It would allow more people to look at =20 the code in question and comment the proposal. Bye, Alexander. --=20 Ya'll hear about the geometer who went to the beach to catch some rays and became a tangent ? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 3 08:15:58 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 3A71416A407 for ; Wed, 3 Jan 2007 08:15:58 +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 BF13413C442 for ; Wed, 3 Jan 2007 08:15:57 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F246.dip.t-dialin.net [84.165.242.70]) by redbull.bpaserver.net (Postfix) with ESMTP id D32622E1A4; Wed, 3 Jan 2007 09:19:56 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 4ED695B4847; Wed, 3 Jan 2007 09:15:49 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l038FlZ3048893; Wed, 3 Jan 2007 09:15:47 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 03 Jan 2007 09:15:46 +0100 Message-ID: <20070103091546.e6vucwvbk0wk8c80@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 03 Jan 2007 09:15:46 +0100 From: Alexander Leidinger To: Marcin Cieslak 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> <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> <20070102165317.GA35202@stud.fit.vutbr.cz> <459AF873.2060907@SYSTEM.PL> In-Reply-To: <459AF873.2060907@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 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: Wed, 03 Jan 2007 08:15:58 -0000 Quoting Marcin Cieslak (from Wed, 03 Jan 2007 =20 01:27:31 +0100): > Divacky Roman wrote: >> On Tue, Jan 02, 2007 at 09:55:47AM +0100, Alexander Leidinger wrote: >>> Quoting Scot Hetzel (from Sun, 31 Dec 2006 =20 >>> 13:21:27 -0600): >>> >>>> That patch to mmap fixes the problems with mmap on amd64, and brings >>>> the failed LTP testcases closer to the i386 failed testcases. >>> Thanks for testing, I try to get time to commit this. >> >> which makes me wonder what is MD on the linux_mmap* code. wouldnt =20 >> it be better >> to move that to some MI file instead? >> >> and there are tons of similar code.. for example linux_pause. how =20 >> is this MD? >> I'd vote for moving that code.. >> >> opinions? > > For example amd64 implements execute protection natively (PROT_EXEC), > while on i386 there is no way to separate this from PROT_READ. Other > platforms (sparc) may have different mmap implementations and we may > require different linux_mmap() behaviour (for example, on i386 > PROT_EXEC silently implies PROT_READ, on amd64 it does not have to be > the case). > > Having said that, we *may* be lucky and end up with identical mmap > emulation for all platforms. But I would prefer to test PROT_EXEC > compatibility first before we do that. Probably we should extend mmap > fingerprinter to test for expected PROT_EXEC behaviour. I want to note that we don't have an amd64 linuxulator... we only have =20 an i386 linuxolator on amd64 ATM. So differences in the default =20 behavior need to be compensated. Bye, Alexander. --=20 We all like praise, but a hike in our pay is the best kind of ways. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 3 12:11:13 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 41DAE16A40F for ; Wed, 3 Jan 2007 12:11:13 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id C69B213C45A for ; Wed, 3 Jan 2007 12:11:12 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l03CB9kE074391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Jan 2007 13:11:09 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l03CB90D074390; Wed, 3 Jan 2007 13:11:09 +0100 (CET) Date: Wed, 3 Jan 2007 13:11:09 +0100 From: Divacky Roman To: Marcin Cieslak Message-ID: <20070103121109.GA73725@stud.fit.vutbr.cz> References: <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> <20070102095547.jv0m82h7bkc4ss04@webmail.leidinger.net> <20070102165317.GA35202@stud.fit.vutbr.cz> <459AF873.2060907@SYSTEM.PL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <459AF873.2060907@SYSTEM.PL> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 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: Wed, 03 Jan 2007 12:11:13 -0000 On Wed, Jan 03, 2007 at 01:27:31AM +0100, Marcin Cieslak wrote: > Divacky Roman wrote: > >On Tue, Jan 02, 2007 at 09:55:47AM +0100, Alexander Leidinger wrote: > >>Quoting Scot Hetzel (from Sun, 31 Dec 2006 > >>13:21:27 -0600): > >> > >>>That patch to mmap fixes the problems with mmap on amd64, and brings > >>>the failed LTP testcases closer to the i386 failed testcases. > >>Thanks for testing, I try to get time to commit this. > > > >which makes me wonder what is MD on the linux_mmap* code. wouldnt it be > >better > >to move that to some MI file instead? > > > >and there are tons of similar code.. for example linux_pause. how is this > >MD? > >I'd vote for moving that code.. > > > >opinions? > > For example amd64 implements execute protection natively (PROT_EXEC), > while on i386 there is no way to separate this from PROT_READ. Other > platforms (sparc) may have different mmap implementations and we may > require different linux_mmap() behaviour (for example, on i386 PROT_EXEC > silently implies PROT_READ, on amd64 it does not have to be the case). > > Having said that, we *may* be lucky and end up with identical mmap > emulation for all platforms. But I would prefer to test PROT_EXEC > compatibility first before we do that. Probably we should extend mmap > fingerprinter to test for expected PROT_EXEC behaviour. hmm.. this is true.. I didnt think about this. Looks like we should scrutinize every such case and decide where it belongs. The fact is that we will need native amd64 linuxulator and it will (or at least should) use the compat/linux/ code.. thnx for the point marcin From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 3 22:05:28 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 3EF6A16A415; Wed, 3 Jan 2007 22:05:28 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.freebsd.org (Postfix) with ESMTP id 76AA113C441; Wed, 3 Jan 2007 22:05:27 +0000 (UTC) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Thu, 04 Jan 2007 06:05:25 +0800 id 0011F80B.459C28A5.000097CD References: <20070103122134.GA74544@stud.fit.vutbr.cz> In-Reply-To: <20070103122134.GA74544@stud.fit.vutbr.cz> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org Date: Thu, 04 Jan 2007 06:05:25 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Successfully Unbreak Adobe Reader 7.0.8 for the New Linux Emulator 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: Wed, 03 Jan 2007 22:05:28 -0000 It's dawning in Beijing now. I'm quite tired. Here, I only summarize the solution as is. I will write a complete hacking report after a rest. 1. Restore your /sys/compat/linux/linux_file.c to the original revision 1.99 (7.0-CURRENT) if you have applied my yesterday's patch. You have two convenient ways to do this: 1) Overwrite linux_file.c with linux_file.c.orig backuped by patch(1) OR 2) Download the revision 1.99 from: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/compat/linux/linux_file.c 2. Apply my new patch for /sys/compat/linux/linux_file.c: http://ftp.intron.ac/tmp/linux_file.c.2.diff 3. Recompile and reload the module linux.ko. 4. sysctl compat.linux.osrelease=2.6.16 5. Remove ~/.adobe/Acrobat/7.0/UserCache.bin if something troubles you. My brain is a little foggy now. If I make something wrong, please do not laugh at me. Screenshots: 1. FreeBSD Developers' Handbook, Chinese version: http://ftp.intron.ac/tmp/adobereader-20070104-1.png 2. Unicode 4.1 Code Charts, a page for ancient Chinese characters: http://ftp.intron.ac/tmp/adobereader-20070104-2.png 3. The English novel Jane Eyre (got from http://www.planetpdf.com/): http://ftp.intron.ac/tmp/adobereader-20070104-3.png ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 4 07:37:38 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 CFAAB16A403; Thu, 4 Jan 2007 07:37:38 +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 8737F13C448; Thu, 4 Jan 2007 07:37:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F451.dip.t-dialin.net [84.165.244.81]) by redbull.bpaserver.net (Postfix) with ESMTP id 205922E1BA; Thu, 4 Jan 2007 08:41:54 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 86CEC5B4847; Thu, 4 Jan 2007 08:37:31 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l047bSIP085011; Thu, 4 Jan 2007 08:37:28 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 04 Jan 2007 08:37:28 +0100 Message-ID: <20070104083728.3bs0ltbw84okk84g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 04 Jan 2007 08:37:28 +0100 From: Alexander Leidinger To: Intron is my alias on the Internet References: <20070103122134.GA74544@stud.fit.vutbr.cz> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 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-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Successfully Unbreak Adobe Reader 7.0.8 for the New Linux Emulator 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: Thu, 04 Jan 2007 07:37:38 -0000 Quoting Intron is my alias on the Internet (from Thu, 04 Jan 2007 06:05:25 +0800): > 2. Apply my new patch for /sys/compat/linux/linux_file.c: > http://ftp.intron.ac/tmp/linux_file.c.2.diff What about printing a message in the LINUX_O_NOATIME case (maybe only if bootverbose or debug)? Are there other flags which are not handled there? Maybe we should add some code to detect flags which we don't know about (adding the flags we know about to a variable when we see them, comparing this variable to the input and print a message when there's a difference). Bye, Alexander. -- A man is already halfway in love with any woman who listens to him. -- Brendan Francis http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 6 08:12:01 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 321E716A407 for ; Sat, 6 Jan 2007 08:12:01 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id DEA3513C441 for ; Sat, 6 Jan 2007 08:12:00 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so3328382nzh for ; Sat, 06 Jan 2007 00:12:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tSZIVYwA6ZfNwmiP13ZTfrFYSDNmK0w7VmednwjTgkXhhS+eG93jFkH0f7F7CaSvxAsDr9GfYIZHd3vircsjmXKfbYVJXG+icWu77nwTPtTjIYjNQFCCtAvMNEcj1ZPFPWg5DLIEqRa1OSqpvXF8iJxx6nmNx+7g2El1SFHT8XQ= Received: by 10.65.151.6 with SMTP id d6mr2465835qbo.1168071120253; Sat, 06 Jan 2007 00:12:00 -0800 (PST) Received: by 10.65.61.1 with HTTP; Sat, 6 Jan 2007 00:12:00 -0800 (PST) Message-ID: <790a9fff0701060012x40063f48pc842510b082df5a5@mail.gmail.com> Date: Sat, 6 Jan 2007 02:12:00 -0600 From: "Scot Hetzel" To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: linuxolator: proc/filesystems and sysfs function implementations 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 08:12:01 -0000 While working on the proc/filesystems implementation, I noticed that the sysfs function also returns with similar results. I have implemented all 3 options used in the sysfs function, and they seem to pass most of the LTP tests (sysfs01-04, 06). sysfs05 crashes the system when it gets to the test with an invalid address. Currently, I am having a problem in returning EFAULT on an invalid address, a condensed version of the code, where I need this check is: int linux_sysfs(struct thread *td, struct linux_sysfs_args *args) { unsigned int index; char *name; switch (args->option) { case 1: name = (char *)(uintptr_t)args->arg1; /* XXX: check if name is invalid and return EFAULT */ : /* find the index for a given name */ break; case 2: index = args->arg1; buf = (char *)(uintptr_t)args->arg2; /* XXX: check if buf is invalid and return EFAULT */ : /* find the fs name using the index */ : /* XXX: Will this return EFAULT with an invalid buf [(char *)-1]? */ error = copyout(vfsp->vfc_name, buf, len); break; case 3: /* count the number of available fs */ : break; } return (error); } This implementation is using TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) to search the filesystem list (as suggested by Kostik). I also re-implemented the patch to linprocfs to use TAILQ_FOREACH(vfsp, &vfsconf, vfc_list), and implemented the freebsd_to_linux_fs function (translates a freebsd fs name to a linux fs name) in sys/compat/linprocfs/linprocfs.c. This function is needed by the sysfs implementation, and was wondering where the translation function, and the structure it returns should be placed so that it is accessable to both implementations (linux_sysfs, and linprocfs_dofilesystems). struct l_file_system_type { const char *name; int fs_flags; }; #define FS_REQUIRES_DEV 1 static void * freebsd_to_linux_fs(char *name, struct l_file_system_type *fs) { fs->name = name; fs->fs_flags = FS_REQUIRES_DEV; : /* Does fs require a dev entry? */ : /* Translate FreeBSD -> Linux fs name */ : } Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 6 12:08:43 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 02CF116A412 for ; Sat, 6 Jan 2007 12:08:43 +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 B586613C455 for ; Sat, 6 Jan 2007 12:08:42 +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 4E2922E146; Sat, 6 Jan 2007 13:13:27 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id BF4D25B497E; Sat, 6 Jan 2007 13:08:30 +0100 (CET) Date: Sat, 6 Jan 2007 13:08:30 +0100 From: Alexander Leidinger To: "Scot Hetzel" Message-ID: <20070106130830.3c2e6d98@Magellan.Leidinger.net> In-Reply-To: <790a9fff0701060012x40063f48pc842510b082df5a5@mail.gmail.com> References: <790a9fff0701060012x40063f48pc842510b082df5a5@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.787, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, TW_OC 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator: proc/filesystems and sysfs function implementations 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 12:08:43 -0000 Quoting "Scot Hetzel" (Sat, 6 Jan 2007 02:12:00 -0600): > I also re-implemented the patch to linprocfs to use > TAILQ_FOREACH(vfsp, &vfsconf, vfc_list), and implemented the > freebsd_to_linux_fs function (translates a freebsd fs name to a linux > fs name) in sys/compat/linprocfs/linprocfs.c. > > This function is needed by the sysfs implementation, and was wondering > where the translation function, and the structure it returns should be > placed so that it is accessable to both implementations (linux_sysfs, > and linprocfs_dofilesystems). What about compat/linux_emul.[ch], or linux_misc.[ch] or a completely new linux_fs.[ch]? I don't know if it is a good idea to translate the names or not... I can come up with cases where it is ok, but I can also come up with cases where it isn't. Unluckily I don't know which cases should be taken into account or not. Bye, Alexander. -- Golly, I'd hate to have a kid like me! -- Calvin http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 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 From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 6 16:02:45 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 2CA1516A40F for ; Sat, 6 Jan 2007 16:02:45 +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 D8B4113C441 for ; Sat, 6 Jan 2007 16:02:44 +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 2BA372E146; Sat, 6 Jan 2007 17:07:36 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 896695B497E; Sat, 6 Jan 2007 17:02:37 +0100 (CET) Date: Sat, 6 Jan 2007 17:02:37 +0100 From: Alexander Leidinger To: "Scot Hetzel" Message-ID: <20070106170237.066f1ec7@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 16:02:45 -0000 Quoting "Scot Hetzel" (Sun, 31 Dec 2006 13:21:27 -0600): > That patch to mmap fixes the problems with mmap on amd64, and brings > the failed LTP testcases closer to the i386 failed testcases. I committed this with the unconditional addition of PROT_EXEC like we did before. This should fix the LTP tests and keep the behavior as described in the comment as before. I assume you will update the amd64 part in the LTP table in the wiki with the results. I'm looking forward to this. -- "What were you doing?" "He doesn't know." "Know what?" -- Agents Brown, Jones and Smith, "The Matrix" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137