Subject: Re: COMPAT_NETBSD32's execve, copy/paste of code
To: Quentin Garnier <cube@cubidou.net>
From: Eduardo Horvath <eeh@NetBSD.org>
List: tech-kern
Date: 07/11/2005 18:20:49
On Mon, Jul 11, 2005 at 12:15:33AM +0200, Quentin Garnier wrote:

> To properly fix netbsd32_wait4(), the only thing that would be needed is
> a slighly smarter copyin()/copyout() that would check if the supposedly
> user address is actually a kernel address or not, and in the former case
> only do a memcpy().  I don't know if it easy to do that, even if it ends
> as a set of MD implementations.  I do know that it wouldn't be only
> useful for compat_netbsd32, though.

On some machines kernel and userland use separate address spaces so it
is not possibly to distinguish between a userland or kernel pointer
just by looking at it.

Eduardo