DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 29 Aug 2009 20:48:46 -0700 (PDT)

commit da65538369cf80e4559f8ef86db7c0913b222890
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]