CVSROOT:        /cvs
Module name:    src
Changes by:     o...@cvs.openbsd.org    2010/09/23 12:49:39

Modified files:
        sys/dev        : softraid.c softraid_crypto.c 
        sys/dev/raidframe: rf_disks.c rf_openbsdkintf.c 
        sys/kern       : subr_disk.c 
        sys/nnpfs      : nnpfs_vnodeops.h 
        sys/ufs/ext2fs : ext2fs_lookup.c ext2fs_vnops.c 
        sys/ufs/ufs    : ufs_lookup.c ufs_vnops.c 

Log message:
The only sensible argument for VOP_* calls that take a struct proc pointer is
curproc. A bunch of callers were passing in 0 (not even NULL, 0) as this
pointer, which was fine until the called vnode function tried to do
something with it. Typically, this code was then copy/pasted to various
parts of the tree.

Accept the facts of life and switch all of these over to passing curproc
for now until the argument can be removed.

Discovered by stsp trying to create a softraid on top of a vnd, which
crashed with a NULL deref in vndioctl.

softraid bits tested by mikeb and jsing. raidframe bits tested by pea,
matthieu and naddy. The rest tested by at least thib, jsing and myself.

ok thib@, js...@.

Reply via email to