From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 31 03:55:38 2006 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 22BE316A416 for ; Sun, 31 Dec 2006 03:55:38 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id D9A6913C45B for ; Sun, 31 Dec 2006 03:55:37 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so2318264nzh for ; Sat, 30 Dec 2006 19:55: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=Fj2hBZGlkvKIjafBgOBel0rXJSP8weZck+sqVHvbZLfv0KX1ZylaLHSB2j3e1bjeDjDLMyOk/T5BI7nPkWTJqSYphok/sloWf013mQrdL15J72VMye0JoYhLxuBhkZgqQOP7S/Y5Ao8z4vojMkKaX7+tNr3EkG7NApBQLrbLxxo= Received: by 10.64.10.2 with SMTP id 2mr9633335qbj.1167537337272; Sat, 30 Dec 2006 19:55:37 -0800 (PST) Received: by 10.65.61.1 with HTTP; Sat, 30 Dec 2006 19:55:37 -0800 (PST) Message-ID: <790a9fff0612301955r35b16472r2429fbe3fce78228@mail.gmail.com> Date: Sat, 30 Dec 2006 21:55:37 -0600 From: "Scot Hetzel" To: "Divacky Roman" In-Reply-To: <790a9fff0612301926n1562d560r1f3fff9af4bdb138@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> 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: Sun, 31 Dec 2006 03:55:38 -0000 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. Scot #include #include #include #include #include int main() { char * bad_addr; access((char *)-1, 0); bad_addr = mmap(0, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); printf("bad_addr = %p\n", bad_addr); access(bad_addr, 0); return(0); } hp010 / # gcc t1.c -o t1 hp010 / # ./t1 bad_addr = 0x2805e000 hp010 / # exit exit Dec 30 21:47:11 hp010 kernel: linux(1565): access(Checking if path [0xffffffffffffffff/0xffffffffa3b5abe0/0xffffffff] exists) Dec 30 21:47:11 hp010 kernel: kern_alternate_path: error = 14, path = 0xffffffffa3b5a980 Dec 30 21:47:11 hp010 kernel: linux(1565): access(Checking if path [0xffffffffffffffff/0xffffffffa3b5abe0/0x2805e000] exists) Dec 30 21:47:11 hp010 kernel: kern_alternate_path: error = 0, path = 0xffffffffa3b5a980