freebsd-dev/sys/compat
Brian Feldman 42ebfbf227 Modify ktrace's general I/O tracing, ktrgenio(), to use a struct uio *
instead of a struct iovec * array and int len.  Get rid of stupidly trying
to allocate all of the memory and copyin()ing the entire iovec[], and
instead just do the proper VOP_WRITE() in ktrwrite() using a copy of
the struct uio that the syscall originally used.

This solves the DoS which could easily be performed; to work around the
DoS, one could also remove "options KTRACE" from the kernel.  This is
a very strong MFC candidate for 4.1.

Found by:	art@OpenBSD.org
2000-07-02 08:08:09 +00:00
..
linprocfs Make exe a symlink. 2000-05-24 07:37:02 +00:00
linux Linux allows to mmap annonymous with a file descriptor passed, FreeBSD 2000-06-15 09:57:34 +00:00
netbsd Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
svr4 Modify ktrace's general I/O tracing, ktrgenio(), to use a struct uio * 2000-07-02 08:08:09 +00:00