Subject: CVS commit: src/sys
To: None <>
From: Reinoud Zandijk <>
List: source-changes
Date: 12/13/2005 13:12:18
Module Name:	src
Committed By:	reinoud
Date:		Tue Dec 13 13:12:18 UTC 2005

Modified Files:
	src/sys/kern: kern_ktrace.c
	src/sys/nfs: nfs_bio.c

Log Message:
Fix of panic that was introduced since ktrace-lwp branch was merged. The
shortcut to the process of the passed lwp paniced the kernel since lwp
could/can be passwd as NULL in VOP_WRITE().

This was happening when ktracing to NFS. The function ktrwrite() set the
uio_lwp to NULL and then calls VOP_WRITE() with this argument. nfs_write()
then accessed lwp *l->l_proc wich paniced.

Thanks to David Laight for his help on tracking it down.

To generate a diff of this commit:
cvs rdiff -r1.98 -r1.99 src/sys/kern/kern_ktrace.c
cvs rdiff -r1.139 -r1.140 src/sys/nfs/nfs_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.