git: kernel - Fix deep stack recursion in unix domain socket garbage collection

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Dec 1 09:59:55 PST 2010


commit 82b1d9f2986a04924803359759c12bab32b9cf1c
Author: Matthew Dillon <dillon at 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 at 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





More information about the Commits mailing list