Mark Johnston 434ac8b6b7 Handle races with listening socket close when connecting a unix socket.
If the listening socket is closed while sonewconn() is executing, the
nascent child socket is aborted, which results in recursion on the
unp_link lock when the child's pru_detach method is invoked. Fix this
by using a flag to mark such sockets, and skip a part of the socket's
teardown during detach.

Reported by:	Raviprakash Darbha <rdarbha@juniper.net>
Tested by:	pho
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D7398
2016-08-08 20:25:04 +00:00
..
2016-08-04 19:15:51 +00:00
2015-04-22 14:38:58 +00:00
2016-06-09 18:27:41 +00:00
2016-02-23 23:37:10 +00:00
2016-07-27 11:40:06 +00:00
2015-01-22 11:12:42 +00:00
2016-08-04 19:15:51 +00:00
2016-08-03 18:48:56 +00:00
2016-07-26 17:23:49 +00:00
2016-04-29 22:15:33 +00:00
2015-03-17 14:16:50 +00:00
2016-04-14 17:07:26 +00:00
2016-07-29 18:26:15 +00:00