Samuel Thibault, on Sun 03 Apr 2016 11:27:48 +0200, wrote:
> Richard Braun, on Sat 02 Apr 2016 20:55:58 +0200, wrote:
> > On Sat, Apr 02, 2016 at 01:35:49PM -0300, Agustina Arzille wrote:
> > > As a workaround, we could always use 'vm_map', no matter what, since the
> > > idea that 'vm_allocate' has a little less overhead is somewhat bogus to 
> > > me, or
> > > keep using 'vm_allocate', but do an additional 'vm_inherit' if the user 
> > > specified
> > > a shared mapping.
> > > 
> > > What do you guys think?
> > 
> > I completely agree with using vm_map unconditionnally
> 
> Indeed, both calls quickly end up in vm_map_enter anyway, so I don't see
> the point in making a special case in mmap(), especially if there is a
> bug in there :)
> 
> So the fix would be just to remove the whole
>   if ((flags & (MAP_TYPE|MAP_INHERIT)) == MAP_ANON
> block?

Apparently that broke booting the system for some reason, so it seems
it's not exactly the same behavior :)

Samuel

Reply via email to