delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/27/17:23:03

X-Spam-Check-By: sourceware.org
X-Cloudmark-Score: 0.000000 []
X-T2-Posting-ID: dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA=
Date: Sun, 27 Nov 2005 23:22:46 +0100
From: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: mmap() on 64K aligned address fails
Message-ID: <20051127222246.GJ5150@bouh.residence.ens-lyon.fr>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <dm8oki$48t$1 AT sea DOT gmane DOT org> <20051126180331 DOT GI5074 AT bouh DOT residence DOT ens-lyon DOT fr> <dmajga$8lq$1 AT sea DOT gmane DOT org> <20051126214701 DOT GW5074 AT bouh DOT residence DOT ens-lyon DOT fr> <dmaov2$nk0$1 AT sea DOT gmane DOT org> <dmavc9$5bt$1 AT sea DOT gmane DOT org> <20051127130652 DOT GT2999 AT calimero DOT vinschen DOT de> <dmdba8$dd4$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <dmdba8$dd4$1@sea.gmane.org>
User-Agent: Mutt/1.5.9i-nntp
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

René Berber, le Sun 27 Nov 2005 16:17:45 -0600, a écrit :
> Corinna Vinschen wrote:
> [snip]
> >>mmap(0x470000, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)
> >>somehow an invalid invocation.
> > 
> > 
> > I didn't inspect the testcase all too closely since it's annoyingly long
> > for such a simple test.  But what exactly do you expect when trying to
> > mmap an arbitrary memory address in the virtual address space which you
> > know nothing about?
> 
> It's not an arbitrary memory address, the 0x470000 is the result of aligning a
> pagesize space into 17xpagesize malloced memory.

Memmapping to malloced memory could very well be forbidden. Why would
one want to do this?

Regards,
Samul

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019