git: tcp: Fix bind races due to async close and random socket inital msgport

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Nov 15 04:32:10 PST 2015


commit 7c0074d8cdd77be9995119d234fe855f7c54dba0
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Nov 15 20:19:11 2015 +0800

    tcp: Fix bind races due to async close and random socket inital msgport
    
    Bind for TCP sockets is now serialized by netisr0.  Add comment about
    this bind race.
    
    Reported-by: Justin Sherrill

Summary of changes:
 sys/kern/uipc_msg.c      |  1 +
 sys/net/netmsg.h         |  3 +++
 sys/netinet/tcp_usrreq.c | 68 +++++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 66 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7c0074d8cdd77be9995119d234fe855f7c54dba0


-- 
DragonFly BSD source repository



More information about the Commits mailing list