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
..
1999-10-29 18:09:36 +00:00
2000-06-25 10:14:06 +00:00
2000-06-29 09:26:26 +00:00
2000-06-07 18:54:41 +00:00
2000-06-23 07:10:34 +00:00
2000-06-10 19:21:20 +00:00
1999-11-14 13:54:44 +00:00
2000-05-01 20:32:07 +00:00
2000-04-22 15:13:06 +00:00
2000-06-26 09:53:37 +00:00
2000-04-29 11:32:15 +00:00
1999-11-21 19:03:20 +00:00
2000-06-10 07:12:40 +00:00