From owner-freebsd-current@FreeBSD.ORG Sun Jul 31 18:15:21 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7905016A41F for ; Sun, 31 Jul 2005 18:15:21 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6869143D4C for ; Sun, 31 Jul 2005 18:15:20 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so1210883rna for ; Sun, 31 Jul 2005 11:15:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gEB68GOgTpulGUGLjv1CT/R7NRuBMQfvZpKIppNPftpYhDFzPEO9WfTFnPtMiGNAIFMjRGLnOsw8rOKfdvbo5k8aTFHFHwLdqd+p+HTor/5NZBTaHYJbyCUZHBT9OzQ52shIvm8IRYHDnAHISeBRuuoIZQYNE789mnnEqkbcm1s= Received: by 10.38.207.80 with SMTP id e80mr1456088rng; Sun, 31 Jul 2005 11:15:19 -0700 (PDT) Received: by 10.38.13.79 with HTTP; Sun, 31 Jul 2005 11:15:19 -0700 (PDT) Message-ID: <84dead720507311115290f0140@mail.gmail.com> Date: Sun, 31 Jul 2005 23:45:19 +0530 From: Joseph Koshy To: Giorgos Keramidas In-Reply-To: <20050731160853.GC49839@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050731141801.GA49300@gothmog.gr> <84dead7205073108564f71f1ab@mail.gmail.com> <20050731160853.GC49839@gothmog.gr> Cc: freebsd-current@freebsd.org Subject: Re: mmap bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 18:15:21 -0000 gk> That's something I didn't test. No, the 'extra' data=20 gk> disappears. So the 'extra' data isn't reaching the FS and is probably being served up from a cached VM data the second time your test program ran. This is still a bug though: the mmap(2) manual page says: ... If len is not a multiple of the page-size, the mapped region may extend past the=20 specified range. Any such extension beyond the end of the=20 mapped object will be zero-filled. ... We are clearly not doing the zero-filling. --=20 FreeBSD Volunteer, http://people.freebsd.org/~jkoshy