tcp: Fix bind races due to async close and random socket inital msgport
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 15 Nov 2015 12:19:11 +0000 (20:19 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 15 Nov 2015 12:30:06 +0000 (20:30 +0800)
commit7c0074d8cdd77be9995119d234fe855f7c54dba0
treecd02c8669a6841805506df7fe07f89c0dd340223
parent838772be3c028f0cfd9fae5da181858e4199863a
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
sys/kern/uipc_msg.c
sys/net/netmsg.h
sys/netinet/tcp_usrreq.c