Subject: Re: vm_mmap question
To: None <>
From: Mike Hibler <>
List: tech-kern
Date: 12/01/1994 12:20:44
> From: (Gordon W. Ross)
> Date: Thu, 1 Dec 94 13:56:40 EST
> To: core@NetBSD.ORG
> Cc: tech-kern@NetBSD.ORG
> Subject: vm_mmap question
> While scrutinizing vm_mmap.c I noticed that a "hint" address
> (non-zero address when the MAP_FIXED flag is NOT set) does
> not appear to be checked to make sure it is in user space.
> Should the "in user space" checks be applied both with and
> without the MAP_FIXED flag?  I know that address zero is
> special (means the kernel should choose) but otherwise it
> seems to me that the address should be in user space.
Probably.  I did this code originally on the hp300 where the kernel and
user had separate address spaces and didn't think about the shared address
space possibility.