From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjiHG-0007Zf-9C for qemu-devel@nongnu.org; Sat, 27 Sep 2008 18:28:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjiHE-0007Wa-0e for qemu-devel@nongnu.org; Sat, 27 Sep 2008 18:28:37 -0400 Received: from [199.232.76.173] (port=34143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjiHD-0007WQ-UB for qemu-devel@nongnu.org; Sat, 27 Sep 2008 18:28:35 -0400 Received: from csl.cornell.edu ([128.84.224.10]:1955 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjiHD-0008GT-Ov for qemu-devel@nongnu.org; Sat, 27 Sep 2008 18:28:35 -0400 Received: from stanley.csl.cornell.edu (stanley.csl.cornell.edu [128.84.224.15]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id m8RMSUb2016034 for ; Sat, 27 Sep 2008 18:28:35 -0400 (EDT) Date: Sat, 27 Sep 2008 18:28:30 -0400 (EDT) From: Vince Weaver Message-ID: <20080927182454.A29159@stanley.csl.cornell.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Qemu-devel] another 64/32 mmap() bug Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org In trying to get the remaining spec2k/spec2k6 benchmarks to run, I've found another 64-bit/32-bit mmap() linux-user problem. This could be a kernel problem. The mmap() call in conjunction with MAP_32BIT will make sure the address of an allocation is < 32-bit. The problem is it doesn't check that the _entire address range_ is < 32-bit. So it will return an address of say 0xffff0000 for an allocation of 128kB, and the end of that allocation will not be addressable, causing a segfault. Vince