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

git: network - Fix race in accept()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 16 Sep 2010 23:01:50 -0700 (PDT)

commit c19fdb0e337965597a1be65123c93c2b0fdf1d1b
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Sep 16 23:00:26 2010 -0700

    network - Fix race in accept()
    
    * Fix a race where a socket undergoing an accept() was not being
      referenced soon enough, resulting in a window of opportunity for
      the kernel to attempt to free it if the tcp connection resets
      before userland can finish the accept.
    
      This resulted in an assertion panic.
    
    Reported-by: Peter Avalos

Summary of changes:
 sys/kern/uipc_socket.c            |    5 ++++-
 sys/kern/uipc_syscalls.c          |   17 ++++++++++++-----
 sys/netgraph/ksocket/ng_ksocket.c |    7 ++++---
 3 files changed, 20 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c19fdb0e337965597a1be65123c93c2b0fdf1d1b


-- 
DragonFly BSD source repository



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