Subject: Re: mount_nfs giving "Bad address" error return
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 03/27/1997 10:32:40
> 	nfs: /nfs/local/dir: Bad address

"Bad address" - isn't that EFAULT?  AFAIK, EFAULT should _never_
happen; it indicates a bug, though from just what I read here I
couldn't say whether in userland or kernel.

(EFAULT means that the kernel tried to copy some data to or from
user-land and discovered userland couldn't read (for a user->kernel
copy) or write (for a kernel->user copy) the memory area in question.
It usually indicates trash was passed in where a pointer is called
for.  So either (a) user-land is passing a bogus pointer, (b) the
kernel disagrees with user-land over what should be a pointer, or (c)
the kernel is returning EFAULT for some other reason.  (a) and (c) are
pure bugs; (b) can arise if user-land and kernel are out of sync with
one another.)

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B