Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Nov 2009 16:57:52 +0100 (CET)
From:      Alexander Best <alexbestms@wwu.de>
To:        John Baldwin <jhb@freebsd.org>, <freebsd-hackers@freebsd.org>
Cc:        Alan Cox <alc@cs.rice.edu>
Subject:   Re: mmap(2) with MAP_ANON honouring offset although it shouldn't
Message-ID:  <permail-200911091557521e86ffa80000099b-a_best01@message-id.uni-muenster.de>
In-Reply-To: <200911090931.12494.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin schrieb am 2009-11-09:
> On Saturday 07 November 2009 9:19:05 pm Alexander Best wrote:
> > no problem. i've sent the final patch as followup to kern/71258 and
> > also
> > attached it to this message. to make it short. what's being changed
> > by the
> > patch:

> > 1) if MAP_ANON is defined and offset !=0  ====>  return EINVAL
> > 2) if MAP_STACK is defined and offset !=0   ====>  offset = 0

> > would be great if you could have a look at the patch if you've got
> > a spare
> > minute.

> I didn't think 2) changed?  I.e. both the old and new code do this,
> so only 1)
> is changing?

you're right sorry about that mistake. so the only aspect of mmap() the patch
changes is:

if MAP_ANON is defined and offset !=0  ====>  return EINVAL

cheers.
alex



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-200911091557521e86ffa80000099b-a_best01>