Subject: PR/20138 CVS commit: src/sys/nfs
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@netbsd.org>
List: netbsd-bugs
Date: 07/07/2005 02:06:01
The following reply was made to PR kern/20138; it has been noted by GNATS.

From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/20138 CVS commit: src/sys/nfs
Date: Thu,  7 Jul 2005 02:05:03 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Thu Jul  7 02:05:03 UTC 2005
 
 Modified Files:
 	src/sys/nfs: nfs_bio.c nfs_subs.c nfs_syscalls.c nfs_var.h nfs_vnops.c
 
 Log Message:
 1. use p = uio->uio_procp consistently and eliminate suspicious uses
    of curproc (where uio->uio_procp should be used?). Don't do this
    for nfs_commit(), because yamt says it is possibly wrong.
 2. nfs_doio() does not use struct proc; remove it and the code to compute it.
 3. use copyin_proc() and copyout_proc() instead of copyin() and copyout().
 4. check return of copyout_proc(). and mark return from copyin_proc() XXX
 5. Eliminate check p == curproc assertion check from nfs_write;
    nfs_read does not have it and we might be called in a different
    process context anyway (PR 20138).
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.128 -r1.129 src/sys/nfs/nfs_bio.c
 cvs rdiff -r1.149 -r1.150 src/sys/nfs/nfs_subs.c
 cvs rdiff -r1.78 -r1.79 src/sys/nfs/nfs_syscalls.c
 cvs rdiff -r1.50 -r1.51 src/sys/nfs/nfs_var.h
 cvs rdiff -r1.222 -r1.223 src/sys/nfs/nfs_vnops.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.