git: Kernel - replace unbounded uses of kvcprintf() and reduce stack use by devfs

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 29 20:50:07 PDT 2009


commit da65538369cf80e4559f8ef86db7c0913b222890
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Aug 29 20:46:41 2009 -0700

    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().

Summary of changes:
 sys/dev/raid/vinum/vinumconfig.c |   14 +----
 sys/kern/kern_conf.c             |   53 ++++++--------------
 sys/sys/devfs.h                  |    1 -
 sys/vfs/devfs/devfs_core.c       |  103 +++++++++++++++-----------------------
 4 files changed, 58 insertions(+), 113 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da65538369cf80e4559f8ef86db7c0913b222890


-- 
DragonFly BSD source repository





More information about the Commits mailing list