git: kernel -- file desc malloc zone overflow handling.
Venkatesh Srinivas
vsrinivas at crater.dragonflybsd.org
Sun Mar 6 05:22:40 PST 2011
commit 2994659f1e6c1ef260241491bceca91c9d2553b3
Author: Venkatesh Srinivas <me at 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
More information about the Commits
mailing list