Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 09/16/2003 15:55:29
Module Name: src
Committed By: drochner
Date: Tue Sep 16 15:55:28 UTC 2003
Modified Files:
src/sys/kern: sys_generic.c
Log Message:
Take into account the possibility that the ktrace flags can change
during a read(v)/write(v). If that happeded, we either passed a NULL
pointer or a pointer to something uninitialized as iov to ktrace,
or we got a memory leak. In read/write (w/o -v) we zero-initialize
the iov now to limit damage, in the -v calls the (dynamically allocated)
pointer is checked after the I/O.
To generate a diff of this commit:
cvs rdiff -r1.77 -r1.78 src/sys/kern/sys_generic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.