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

git: kernel -- file desc malloc zone overflow handling.


From: Venkatesh Srinivas <vsrinivas@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Mar 2011 05:21:21 -0800 (PST)

commit 2994659f1e6c1ef260241491bceca91c9d2553b3
Author: Venkatesh Srinivas <me@endeavour.zapto.org>
Date:   Sun Mar 6 05:18:24 2011 -0800

    kernel -- file desc malloc zone overflow handling.
    
    Allow null return from mallocs for file descriptor arrays. Fork and exec
    will ENOMEM when we cannot allocate FD arrays.
    
    This is only a partial solution to bug 2019.

Summary of changes:
 sys/kern/kern_descrip.c |   16 +++++++++++-----
 sys/kern/kern_exec.c    |    4 +++-
 sys/kern/kern_fork.c    |   12 ++++++++++--
 sys/sys/filedesc.h      |    2 +-
 4 files changed, 25 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2994659f1e6c1ef260241491bceca91c9d2553b3


-- 
DragonFly BSD source repository



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