markj 7d7c4f74f0 Make sendfile(SF_SYNC)'s CV wait interruptible.
Otherwise, since the CV is not signalled until data is drained from the
socket, it is trivial to create an unkillable process using
sendfile(SF_SYNC) and a process-private PF_LOCAL socket pair.  In
particular, the cv_wait() in sendfile() does not get interrupted until
data is drained from the receiving socket buffer.

Reported by:	pho
Discussed with:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
2020-04-28 15:02:44 +00:00
..
2020-02-26 16:22:28 +00:00
2019-09-03 18:56:25 +00:00
2020-03-02 15:30:52 +00:00
2020-03-02 15:30:52 +00:00
2020-03-02 15:30:52 +00:00
2019-03-12 05:10:41 +00:00
2018-10-12 00:32:45 +00:00
2020-03-02 15:30:52 +00:00
2019-02-20 09:38:19 +00:00
2020-02-03 17:35:11 +00:00
2020-01-12 23:52:16 +00:00
2020-03-20 20:09:00 +00:00
2020-04-14 18:11:26 +00:00
2020-04-14 18:11:26 +00:00
2020-02-15 01:28:42 +00:00
2020-03-30 21:42:46 +00:00
2020-02-15 01:28:42 +00:00
2020-02-23 03:32:11 +00:00