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

看板DFBSD_commit作者時間15年前 (2010/12/02 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1Czerifm (DFBSD_commit)