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
..
2000-06-29 01:19:12 +00:00
2000-06-14 17:53:40 +00:00
2000-06-28 19:18:25 +00:00
2000-06-26 23:41:08 +00:00
2000-06-27 14:56:07 +00:00
2000-05-01 20:32:07 +00:00
2000-06-28 03:25:47 +00:00
2000-06-27 22:41:12 +00:00
2000-05-01 20:32:07 +00:00