Kernel - replace unbounded uses of kvcprintf() and reduce stack use by devfs
commitda65538369cf80e4559f8ef86db7c0913b222890
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 30 Aug 2009 03:46:41 +0000 (29 20:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 30 Aug 2009 03:46:41 +0000 (29 20:46 -0700)
tree5137b831ad5b12875b2c55608274a4c219a2760b
parent93c46bf97fe3564364a4b655cf9f825d03ce1b58
Kernel - replace unbounded uses of kvcprintf() and reduce stack use by devfs

* Replace unbounded uses of kvcprintf() to guarantee that buffers do not
  overflow.

* Do not declare PATH_MAX buffers on the stack.  Use kvasnrprintf() or
  kmalloc() to allocate space.

* In make_autoclone_dev() fix an improper use of a buffer passed as the
  fmt argument to make_dev().
sys/dev/raid/vinum/vinumconfig.c
sys/kern/kern_conf.c
sys/sys/devfs.h
sys/vfs/devfs/devfs_core.c