From: Chris Wright Subject: Re: [PATCH] libxc hardening Date: Thu, 23 Jun 2005 11:24:48 -0700 Message-ID: <20050623182448.GH9157@shell0.pdx.osdl.net> References: <42BA3765.8030809@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org * Keir Fraser (Keir.Fraser@cl.cam.ac.uk) wrote: > mmap() will never return NULL address (according to the man page). I > guess you might be able to force it with MAP_FIXED, but no sane mmap > implementation would ever automatically choose NULL as a reasonable > valid return address. :-) Heh, sadly we just recently fixed a bug in the kernel that actually allowed returning NULL w/out MAP_FIXED. But aside from bugs... ;-)