Mark Johnston b7eae75807 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-04-24 01:27:25 +00:00
2020-04-27 21:51:22 +00:00
2020-04-14 18:57:00 +00:00
2020-04-26 16:30:00 +00:00
2020-04-23 09:37:22 +00:00
2020-04-27 21:51:22 +00:00
2020-02-03 17:35:11 +00:00