DragonFly commits List (threaded) for 2010-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Fix deep stack recursion in unix domain socket garbage collection
commit 82b1d9f2986a04924803359759c12bab32b9cf1c
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Wed Dec 1 09:53:08 2010 -0800
kernel - Fix deep stack recursion in unix domain socket garbage collection
* A chain of unix domain sockets with the previous fd passed into the
next one can cause a kernel stack overflow.
* Flatten the portion of the gc which would otherwise recurse by placing
the fp on a list instead of calling a nested closef(), then running
the closes at the top level.
Reported-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Summary of changes:
sys/kern/uipc_usrreq.c | 47 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 45 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82b1d9f2986a04924803359759c12bab32b9cf1c
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]