Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2000 23:31:02 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Gerry Bash <gersh@sonn.com>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: Alpha memory managment fault questions
Message-ID:  <Pine.BSF.4.10.10006242323340.1165-100000@beppo.feral.com>
In-Reply-To: <Pine.BSI.4.05L.10006242305030.22011-100000@cara.sonn.com>

next in thread | previous in thread | raw e-mail | index | archive | help

What makes you think uap->fname is in the kernel's address space?
The pointer uap points to arguments that are in user space.

Coincidentally on some platforms or implementations you can refer to them
directly in the part of the kernel that is in a direct call path from a
syscall. But this is not guaranteed. In fact, the PDP-11/{45,70} 
implementation of Unix had user and kernel in completely different address
spaces that required the use of special instructions to copy bytes between
them (e.g., MFPD (move from previous data space)).

If you want to print fname in the kernel, what function do you want to use
to assist in printing it?

[ hint- you should follow the call path to namei from execve ]

-matt






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10006242323340.1165-100000>